Liking cljdoc? Tell your friends :D

teensyp.buffer

A namespace of utility functions for managing ByteBuffer objects.

A namespace of utility functions for managing ByteBuffer objects.
raw docstring

bufferclj

(buffer size)

Create a ByteBuffer of the assigned size.

Create a ByteBuffer of the assigned size.
sourceraw docstring

buffer->strclj

(buffer->str buf charset)

Read a String from a ByteBuffer.

Read a String from a ByteBuffer.
sourceraw docstring

copyclj

(copy src dest)

Copy the source buffer into the destination buffer, and increment the positions of both buffers. If the source buffer has more remaining than the destination, as much as possible will be copied until the destination is full. Returns the number of bytes copied.

Copy the source buffer into the destination buffer, and increment the
positions of both buffers. If the source buffer has more remaining than the
destination, as much as possible will be copied until the destination is
full. Returns the number of bytes copied.
sourceraw docstring

index-ofclj

(index-of buffer needle)

Find the first index of the specified byte in a buffer, starting from the buffer's position.

Find the first index of the specified byte in a buffer, starting from the
buffer's position.
sourceraw docstring

index-of-arrayclj

(index-of-array buffer needle)

Find the first index of the specified array of bytes within a buffer, starting from the buffer's position.

Find the first index of the specified array of bytes within a buffer,
starting from the buffer's position.
sourceraw docstring

read-lineclj

(read-line buffer charset)

Return the next line from the buffer, or nil if the buffer has no LF. Strips ending CR and LF characters from the resulting string. If a string is returned, the buffer's position is advanced accordingly.

Return the next line from the buffer, or nil if the buffer has no LF. Strips
ending CR and LF characters from the resulting string. If a string is
returned, the buffer's position is advanced accordingly.
sourceraw docstring

str->bufferclj

(str->buffer s charset)

Convert a String into a ByteBuffer.

Convert a String into a ByteBuffer.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close