Liking cljdoc? Tell your friends :D

teensyp.buffer


bufferclj

(buffer size)

Create a ByteBuffer of the assigned size.

Create a ByteBuffer of the assigned size.
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.

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

index-ofclj

(index-of buffer needle)

Find the first index of the specified byte in a buffer.

Find the first index of the specified byte in a buffer.
sourceraw docstring

index-of-arrayclj

(index-of-array buffer needle)

Find the first index of the specified array of bytes within a buffer.

Find the first index of the specified array of bytes within a buffer.
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 is a website building & hosting documentation for Clojure/Script libraries

× close