(compose this kvps)
(decompose this)
(decompose this buffer)
(compose-buffer spec
&
{:keys [buffer-type orig-buffer] :or {buffer-type :direct}})
(direct-buffer)
(direct-buffer initial-capacity)
(direct-buffer initial-capacity max-capacity)
(from-bit-map type value)
Converts a vector of true
/false
, which represent a series of on
and off set bytes to the actual value, based on given type
.
Converts a vector of `true`/`false`, which represent a series of on and off set bytes to the actual value, based on given `type`.
(heap-buffer)
(heap-buffer initial-capacity)
(heap-buffer initial-capacity max-capacity)
(buffer this)
(get-field this field-name)
(get-field-idx this field-idx)
(set-field this field-name value)
(set-field-idx this field-name value)
(slices this)
(to-binary value)
Converts series of true
/false
flags to series of 1
and 0
where
1 is represents on
and 0
represents off
.
Converts series of `true`/`false` flags to series of `1` and `0` where 1 is represents `on` and `0` represents `off`.
(to-bit-map type value)
Converts given value to vector of true
/false
, which represent on
and off set bytes.
Converts given value to vector of `true`/`false`, which represent on and off set bytes.
(wrapped-buffer orig-buffer)
Returns a buffer that wraps the given byte array, j.nio.ByteBuffer
or netty ByteBuf
Returns a buffer that wraps the given byte array, `j.nio.ByteBuffer` or netty `ByteBuf`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close