Utility functions to build fixed size buffers. These functions hold onto data and yield when a specific size has been reached.
Utility functions to build fixed size buffers. These functions hold onto data and yield when a specific size has been reached.
(index-of buf b)
(index-of buf from to b)
Look for the first index of the byte b in a ByteBuf return it or nil
Look for the first index of the byte b in a ByteBuf return it or nil
(read-int buf)
Fetch an integer from a ByteBuf. Host endianness.
Fetch an integer from a ByteBuf. Host endianness.
(read-long buf)
Fetch a long from a ByteBuf. Host endianness.
Fetch a long from a ByteBuf. Host endianness.
(read-short buf)
Fetch a short from a ByteBuf. Host endianness.
Fetch a short from a ByteBuf. Host endianness.
(retained-slice src)
(retained-slice src length)
(retained-slice src index length)
(write-byte-range buf bytes index length)
Push the specified range of contents of a byte array to a ByteBuf
Push the specified range of contents of a byte array to a ByteBuf
(write-uint buf i)
Push an int to a bytebuf, we keep host endianness over the network for optimization reasons
Push an int to a bytebuf, we keep host endianness over the network for optimization reasons
(write-ulong buf l)
Push a long to a bytebuf, we keep host endianness over the network for optimization reasons
Push a long to a bytebuf, we keep host endianness over the network for optimization reasons
(write-ushort buf i)
Push a short to a bytebuf, we keep host endianness over the network for optimization reasons
Push a short to a bytebuf, we keep host endianness over the network for optimization reasons
(wrong-byte-arg b)
Build an illegal argument exception
Build an illegal argument exception
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close