Liking cljdoc? Tell your friends :D

monkey.flow.buffers

ByteBuffer wrapper code

ByteBuffer wrapper code
raw docstring

->strclj

(->str buf charset)

Returns a string from this buffer's bytes using given charset. between the current buffer position and it's limit.

Returns a string from this buffer's bytes using given charset. between the
current buffer position and it's limit.
sourceraw docstring

buf-sizeclj

(buf-size buf)

The number of bytes used in this buffer

The number of bytes used in this buffer
sourceraw docstring

clearclj

(clear buf)
source

compactclj

(compact buf)

Discards any data before the current position, then sets the position to the current limit.

Discards any data before the current position, then sets the position to the current
limit.
sourceraw docstring

dupclj

(dup buf)

Duplicates this buffer, without actually copying the data

Duplicates this buffer, without actually copying the data
sourceraw docstring

flipclj

(flip buf)

Resets the position to zero and the limit to current position. Use this before reading back the bytes in the buffer.

Resets the position to zero and the limit to current position.  Use this before reading
back the bytes in the buffer.
sourceraw docstring

grow-bufclj

(grow-buf buf len)

Grows buffer so it can store at least len additional bytes

Grows buffer so it can store at least `len` additional bytes
sourceraw docstring

init-sizeclj

Default initial buffer size

Default initial buffer size
sourceraw docstring

make-bufclj

(make-buf)
(make-buf size)

Creates a new ByteBuffer of given or default initial size.

Creates a new `ByteBuffer` of given or default initial size.
sourceraw docstring

put-bufclj

(put-buf buf data)
(put-buf buf data off len)

Writes data to the buffer. Expands buffer if necessary.

Writes data to the buffer.  Expands buffer if necessary.
sourceraw docstring

put-buf-singleclj

(put-buf-single buf b)

Writes a single byte to the buffer

Writes a single byte to the buffer
sourceraw docstring

remainingclj

(remaining buf)
source

set-posclj

(set-pos buf p)

Sets this buffer's new position

Sets this buffer's new position
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