Liking cljdoc? Tell your friends :D
All platforms.

octet.spec.reference

Spec types for arbitrary length byte arrays/strings with a length reference.

Spec types for arbitrary length byte arrays/strings with a length reference.
raw docstring

ref-bytesclj/s

(ref-bytes ref-kw-or-index)

create a dynamic length byte array where the length of the byte array is stored in another spec within the containing indexed spec or associative spec. Example usages: (spec (int16) (int16) (ref-bytes* 1)) (spec :a (int16) :b (int32) (ref-bytes* :b)) where the first example would store the length of the byte array in the second int16 and the second example would store the length of the byte array in the int32 at key :b.

create a dynamic length byte array where the length of the byte array is stored in another
spec within the containing indexed spec or associative spec. Example usages:
(spec (int16) (int16) (ref-bytes* 1))
(spec :a (int16) :b (int32) (ref-bytes* :b))
where the first example would store the length of the byte array in the second int16 and
the second example would store the length of the byte array in the int32 at key :b.
sourceraw docstring

ref-stringclj/s

(ref-string ref-kw-or-index)

create a dynamic length string where the length of the string is stored in another spec within the containing indexed spec or associative spec. Example usages: (spec (int16) (int16) (ref-string* 1)) (spec :a (int16) :b (int32) (ref-string* :b)) where the first example would store the length of the string in the second int16 and the second example would store the length of the string in the int32 at key :b.

create a dynamic length string  where the length of the string is stored in another
spec within the containing indexed spec or associative spec. Example usages:
(spec (int16) (int16) (ref-string* 1))
(spec :a (int16) :b (int32) (ref-string* :b))
where the first example would store the length of the string in the second int16 and
the second example would store the length of the string in the int32 at key :b.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close