(bbuf-allocate n)Allocate a ByteBuffer with fixed size of n
Allocate a `ByteBuffer` with fixed size of `n`
(bbuf-allocate-direct n)Allocate a ByteBuffer with fixed size of n
Allocate a `ByteBuffer` with fixed size of `n`
(bbuf-capacity buff)Retrieve the ByteBuffer capacity size
Retrieve the `ByteBuffer` capacity size
(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.
(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.
(bbuf-hexdump buffer)Print in an hexdump like format ByteBuffer to STDOUT
Print in an `hexdump` like format `ByteBuffer` to STDOUT
(bbuf-limit buff)Retrieve the ByteBuffer limit
Retrieve the `ByteBuffer` limit
(bbuf-mark! buff)Sets this buffer's mark at its position.
Sets this buffer's mark at its position.
(bbuf-position buff)Retrieve the ByteBuffer position
Retrieve the `ByteBuffer` position
(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.
(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.
(bbuf-reset! buff)Resets this buffer's position to the previously-marked position.
Resets this buffer's position to the previously-marked position.
(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.
(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.
(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.
(bbuf-spit file buff)Spit ByteBuffer content to file
Spit `ByteBuffer` content to file
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |