The ByteBuffer functions that allow fetching a data item from a specific position without moving the pointers are needed to make this a useful replacement for ByteBuffer, e.g. ByteBuffer.get(index) returns the byte at index without moving the position.
The ByteBuffer functions that allow fetching a data item from a specific position without moving the pointers are needed to make this a useful replacement for ByteBuffer, e.g.
ByteBuffer.get(index)
returns the byte atindex
without moving theposition
.