(buffer size)
Create a ByteBuffer of the assigned size.
Create a ByteBuffer of the assigned size.
(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.
(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.
(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.
(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.
(str->buffer s charset)
Convert a String into a ByteBuffer.
Convert a String into a ByteBuffer.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close