Liking cljdoc? Tell your friends :D

net.ty.buffer

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.
raw docstring

augment-compositeclj

(augment-composite cb buf)
(augment-composite cb inc-index buf)
source

bufferclj

(buffer)
(buffer init)
(buffer init max)
source

buffer?clj

(buffer? x)
source

Bufferizablecljprotocol

as-bufferclj

(as-buffer this)
source

byte-lengthclj

(byte-length bytes)

Figure out how

Figure out how 
sourceraw docstring

capacityclj

(capacity buf)
source

componentclj

(component cb i)
source

component-countclj

(component-count cb)
source

component-iteratorclj

(component-iterator cb)
source

componentsclj

(components cb)
source

compositeclj

(composite)
(composite max)
source

composite-ofclj

(composite-of & parts)
source

composite?clj

(composite? buf)
source

consolidateclj

(consolidate cb)
source

copyclj

(copy buf)
source

direct-bufferclj

(direct-buffer)
(direct-buffer init)
(direct-buffer init max)
source

duplicateclj

(duplicate buf)
source

empty-bufferclj

An empty bytebuffer

An empty bytebuffer
sourceraw docstring

empty-buffer?clj

(empty-buffer? buf)
source

ensure-releasedclj

(ensure-released buf)
source

exhausted?clj

(exhausted? buf)
source

index-ofclj

(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
sourceraw docstring

is-direct?clj

(is-direct? buf)
source

mark-reader-indexclj

(mark-reader-index buf)
source

merge-bufsclj

(merge-bufs buffers)
source

nio-bufferclj

(nio-buffer buf)
source

read-byteclj

(read-byte buf)
source

read-bytesclj

(read-bytes buf ba)
source

read-charclj

(read-char buf)
source

read-digestclj

(read-digest buf)
source

read-intclj

(read-int buf)

Fetch an integer from a ByteBuf. Host endianness.

Fetch an integer from a ByteBuf. Host endianness.
sourceraw docstring

read-longclj

(read-long buf)

Fetch a long from a ByteBuf. Host endianness.

Fetch a long from a ByteBuf. Host endianness.
sourceraw docstring

read-retained-sliceclj

(read-retained-slice src)
(read-retained-slice src length)
source

read-shortclj

(read-short buf)

Fetch a short from a ByteBuf. Host endianness.

Fetch a short from a ByteBuf. Host endianness.
sourceraw docstring

read-sliceclj

(read-slice src)
(read-slice src length)
source

read-ubyteclj

(read-ubyte buf)
source

read-uintclj

(read-uint buf)
source

read-ulongclj

(read-ulong buf)
source

read-ushortclj

(read-ushort buf)
source

readable-bytesclj

(readable-bytes buf)
source

reader-indexclj

(reader-index buf)
source

refcountclj

(refcount buf)
source

refcountsclj

(refcounts buf)
source

releaseclj

(release buf)
source

release-allclj

(release-all buf)
source

reset-reader-indexclj

(reset-reader-index buf)
source

retainclj

(retain buf)
(retain buf incr)
source

retain-allclj

(retain-all buf)
source

retain-augmentclj

(retain-augment cb buf)
source

retain-lastclj

(retain-last buf)
source

retained-sliceclj

(retained-slice src)
(retained-slice src length)
(retained-slice src index length)
source

ro-viewclj

(ro-view buf)
source

skip-bytesclj

(skip-bytes buf)
(skip-bytes buf len)
source

sliceclj

(slice src)
(slice src length)
(slice src index length)
source

sliced-stringclj

source

to-bytesclj

(to-bytes buf)
source

to-stringclj

(to-string buf)
(to-string buf release?)
source

touchclj

(touch buf)
source

unwrapclj

(unwrap buf)
source

wrapped-bytesclj

(wrapped-bytes ba)
source

wrapped-stringclj

(wrapped-string s)
source

write-and-skip-bytesclj

(write-and-skip-bytes dst src)
(write-and-skip-bytes dst src len)
source

write-byte-rangeclj

(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
sourceraw docstring

write-bytesclj

(write-bytes dst bytes)
(write-bytes dst ba idx len)
source

write-stringclj

(write-string buf s)
source

write-uintclj

(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
sourceraw docstring

write-ulongclj

(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
sourceraw docstring

write-ushortclj

(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
sourceraw docstring

writer-indexclj

(writer-index buf)
source

wrong-byte-argclj

(wrong-byte-arg b)

Build an illegal argument exception

Build an illegal argument exception
sourceraw docstring

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

× close