Liking cljdoc? Tell your friends :D

toolbox.binary


bbuf-allocateclj

(bbuf-allocate n)

Allocate a ByteBuffer with fixed size of n

Allocate a `ByteBuffer` with fixed size of `n`
sourceraw docstring

bbuf-allocate-directclj

(bbuf-allocate-direct n)

Allocate a ByteBuffer with fixed size of n

Allocate a `ByteBuffer` with fixed size of `n`
sourceraw docstring

bbuf-capacityclj

(bbuf-capacity buff)

Retrieve the ByteBuffer capacity size

Retrieve the `ByteBuffer` capacity size
sourceraw docstring

bbuf-clearclj

(bbuf-clear buff)

Clears this buffer. The position is set to zero, the limit is set to the capacity, and the mark is discarded.

This method does not actually erase the data in the buffer, but it is named as if it did because it will most often be used in situations in which that might as well be the case.

Clears this buffer. The position is set to zero, the limit is set to the capacity,
 and the mark is discarded.

This method does not actually erase the data in the buffer, but it is named as
if it did because it will most often be used in situations in which that might as well be the case. 
sourceraw docstring

bbuf-flipclj

(bbuf-flip buff)

Flips this buffer. The limit is set to the current position and then the position is set to zero.

If the mark is defined then it is discarded. This method is often used in conjunction with the compact method when transferring data from one place to another.

Flips this buffer. The limit is set to the current position and then the position is set to zero.

If the mark is defined then it is discarded.
This method is often used in conjunction with the compact method when transferring data from one place to another.
sourceraw docstring

bbuf-hexdumpclj

(bbuf-hexdump buffer)

Print in an hexdump like format ByteBuffer to STDOUT

Print in an `hexdump` like format `ByteBuffer` to STDOUT
sourceraw docstring

bbuf-limitclj

(bbuf-limit buff)

Retrieve the ByteBuffer limit

Retrieve the `ByteBuffer` limit
sourceraw docstring

bbuf-mark!clj

(bbuf-mark! buff)

Sets this buffer's mark at its position.

Sets this buffer's mark at its position.
sourceraw docstring

bbuf-positionclj

(bbuf-position buff)

Retrieve the ByteBuffer position

Retrieve the `ByteBuffer` position
sourceraw docstring

bbuf-readonly-copyclj

(bbuf-readonly-copy buff)

Creates a new, read-only byte buffer that shares this buffer's content.

Creates a new, read-only byte buffer that shares this buffer's
content.
sourceraw docstring

bbuf-remainingclj

(bbuf-remaining buff)

Returns the number of elements between the current position and the limit.

Returns the number of elements between the current position and the limit.
sourceraw docstring

bbuf-reset!clj

(bbuf-reset! buff)

Resets this buffer's position to the previously-marked position.

Resets this buffer's position to the previously-marked position. 
sourceraw docstring

bbuf-rewindclj

(bbuf-rewind buff)

Rewinds this buffer. The position is set to zero and the mark is discarded.

Invoke this method before a sequence of channel-write or get operations, assuming that the limit has already been set appropriately.

Rewinds this buffer. The position is set to zero and the mark is discarded.

Invoke this method before a sequence of channel-write or get operations,
assuming that the limit has already been set appropriately.
sourceraw docstring

bbuf-set-limitclj

(bbuf-set-limit buff limit)

Sets the ByteBuffer limit.

If the position is larger than the new limit then it is set to the new limit. If the mark is defined and larger than the new limit then it is discarded.

Sets the `ByteBuffer` limit.

If the position is larger than the new limit then it is set to the new limit.
If the mark is defined and larger than the new limit then it is discarded.
sourceraw docstring

bbuf-set-positionclj

(bbuf-set-position buff pos)

Set the ByteBuffer new position. If the mark is defined and larger than the new position then it is discarded.

Set the `ByteBuffer` new position.
If the mark is defined and larger than the new position then it
is discarded.
sourceraw docstring

bbuf-spitclj

(bbuf-spit file buff)

Spit ByteBuffer content to file

Spit `ByteBuffer` content to file
sourceraw docstring

bbuf-wrapclj

(bbuf-wrap bytes)
(bbuf-wrap bytes offset length)

Wraps a byte array into a buffer.

Param array: The array that will back the new buffer

Param offset: The offset of the subarray to be used; must be non-negative and no larger than array.length. The new buffer's position will be set to this value.

Param length: The length of the subarray to be used; must be non-negative and no larger than array.length - offset. The new buffer's limit will be set to offset + length.

Wraps a byte array into a buffer.

Param array: The array that will back the new buffer

Param offset: The offset of the subarray to be used; must be non-negative and
no larger than array.length.  The new buffer's position
will be set to this value.

Param length: The length of the subarray to be used;
must be non-negative and no larger than
array.length - offset.
The new buffer's limit will be set to offset + length.
sourceraw docstring

direct?clj

(direct? buff)
source

readOnly?clj

(readOnly? buff)
source

remaining?clj

(remaining? buff)
source

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