Convert native data structures to/from raw bytes for network travel
Convert native data structures to/from raw bytes for network travel
(calculate-length {cnvrtr :frereth.cp.shared.constants/type :as dscr})(compose tmplt fields)serialize a map into a ByteBuf
serialize a map into a ByteBuf
(compose! tmplt fields dst)compose destructively. If you need that optimization
compose destructively. If you need that optimization
(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.
(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
(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
(decompose-array-field src
tmplt
{:keys [:frereth.cp.shared.serialization/index] :as acc}
k)Refactored from inside a reduce
Refactored from inside a reduce
(decompose-field! src tmplt acc k)Refactored from inside a reduce
Refactored from inside a reduce
(extract-byte-array-subset offset src length)(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
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |