ByteBuffer
Functions
Returns the offset within this buffer's backing array of the first element of the buffer (optional operation).
Creates a view of this byte buffer as a float buffer.
Creates a view of this byte buffer as a long buffer.
Creates a new, read-only byte buffer that shares this buffer's content.
Clears the buffer: sets position to 0, limit to capacity, and mark to -1.
Compacts this buffer (optional operation).
Compares the remaining bytes lexicographically.
Creates a new buffer that shares this buffer’s content but has independent position, limit, and mark.
Flips the buffer: sets limit to current position and resets position to 0.
Relative get: reads the byte at the current position then increments it.
Absolute get: returns the byte at the given index (without modifying position).
Bulk get: transfers remaining bytes into the given destination array.
Absolute bulk get method.
Tells whether there are any elements between the current position and the limit.
true if mutation is disallowed
Sets this buffer's limit.
Sets the mark at the current position.
Sets this buffer's position. If the mark is defined and larger than the new position then it is discarded.
Relative put: writes a byte at the current position then increments it.
Relative bulk put method (optional operation).
Absolute put: writes a byte at the specified index.
Bulk put: transfers bytes from the source array into this buffer.
Relative put method for writing an int value (optional operation).
Relative put method for writing a short value (optional operation).
Resets the position to the previously set mark.
Rewinds the buffer: resets position to 0 without changing limit.
Creates a new buffer that is a view of this buffer's content between position and limit.