Returns the offset within this buffer's backing array of the first element of the buffer <i>(optional operation)</i>.
Returns this buffer's capacity.
Checks the given index against the limit, throwing an {@link IndexOutOfBoundsException} if it is not smaller than the limit or is smaller than zero.
Clears this buffer. The position is set to zero, the limit is set to the capacity, and the mark is discarded.
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.
Tells whether or not this buffer is backed by an accessible array.
Tells whether there are any elements between the current position and the limit.
Tells whether or not this buffer is <a href="ByteBuffer.html#direct"><i>direct</i></a>.
Tells whether or not this buffer is read-only.
Returns this buffer's limit.
Sets this buffer's 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 this buffer's mark at its position.
Checks the current position against the limit, throwing a {@link BufferUnderflowException} if it is not smaller than the limit, and then increments the position.
Checks the current position against the limit, throwing a {@link BufferOverflowException} if it is not smaller than the limit, and then increments the position.
Returns this buffer's position.
Sets this buffer's position. If the mark is defined and larger than the new position then it is discarded.
Returns the number of elements between the current position and the limit.
Resets this buffer's position to the previously-marked position.
Rewinds this buffer. The position is set to zero and the mark is discarded.