Liking cljdoc? Tell your friends :D

frereth.cp.shared.serialization

Convert native data structures to/from raw bytes for network travel

Convert native data structures to/from raw bytes for network travel
raw docstring

calculate-lengthclj

(calculate-length {cnvrtr :frereth.cp.shared.constants/type :as dscr})

composeclj

(compose tmplt fields)

serialize a map into a ByteBuf

serialize a map into a ByteBuf
raw docstring

compose!clj

(compose! tmplt fields dst)

compose destructively. If you need that optimization

compose destructively. If you need that optimization
raw docstring

composition-reductionclj

(composition-reduction tmplt fields dst k)

Reduction function associated for run!ing from compose.

TODO: Think about a way to do this using specs instead.

Needing to declare these things twice is annoying.

Reduction function associated for run!ing from compose.

TODO: Think about a way to do this using specs instead.

Needing to declare these things twice is annoying.
raw docstring

decomposeclj

(decompose tmplt src)

Read a C-style struct from a ByteBuf into a map, based on template

Read a C-style struct from a ByteBuf into a map, based on template
raw docstring

decompose-arrayclj

(decompose-array tmplt src)

Read a C-style struct from a byte array into a map, based on template

Read a C-style struct from a byte array into a map, based on template
raw docstring

decompose-array-fieldclj

(decompose-array-field src
                       tmplt
                       {:keys [:frereth.cp.shared.serialization/index] :as acc}
                       k)

Refactored from inside a reduce

Refactored from inside a reduce
raw docstring

decompose-field!clj

(decompose-field! src tmplt acc k)

Refactored from inside a reduce

Refactored from inside a reduce
raw docstring

extract-byte-array-subsetclj

(extract-byte-array-subset offset src length)

read-byte-array!clj

(read-byte-array! dscr src)

From a ByteBuf

Destructive in the sense that it updates the readIndex in src

From a ByteBuf

Destructive in the sense that it updates the readIndex in src
raw docstring

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

× close