- limit
Sets the limit of this buffer. If the current position in the buffer is in
excess ofnewLimit then, o
- position
Sets the position of this buffer. If the mark is set and it is greater than the
new position, then i
- capacity
Returns the capacity of this buffer.
- rewind
Rewinds this buffer. The position is set to zero, and the mark is cleared. The
content of this buffe
- flip
Flips this buffer. The limit is set to the current position, then the position
is set to zero, and t
- remaining
Returns the number of remaining elements in this buffer, that is limit -
position.
- clear
Clears this buffer. While the content of this buffer is not changed, the
following internal changes
- isDirect
Returns true if this is a direct buffer.
- hasArray
Returns true if array and arrayOffset won't throw. This method does not return
true for buffers not
- array
Returns the array that backs this buffer (optional operation). The returned
value is the actual arra
- mark
Marks the current position, so that the position may return to this point later
by calling reset().
- reset
Resets the position of this buffer to the mark.