Sets the read index to index + n
(in other words, skips n
bytes).
Sets the read index to index + n
(in other words, skips n
bytes).
Returns the current read index of this buffer.
Returns the current read index of this buffer.
Reads an array of Byte of the given length.
Reads an array of Byte of the given length.
Length of the newly created array.
Reads a Byte
from this buffer.
Reads a Byte
from this buffer.
Fills the given array with the bytes read from this buffer.
Fills the given array with the bytes read from this buffer.
Reads a UTF-8 C-Style String.
Reads a UTF-8 C-Style String.
Reads a Double
from this buffer.
Reads a Double
from this buffer.
Reads an Int
from this buffer.
Reads an Int
from this buffer.
Reads a Long
from this buffer.
Reads a Long
from this buffer.
Reads a UTF-8 String.
Reads a UTF-8 String.
Returns the number of readable remaining bytes of this buffer.
Returns the number of readable remaining bytes of this buffer.
Returns the buffer size.
Returns the buffer size.
Returns a new instance of ReadableBuffer which starts at the current index and contains n
bytes.
Returns a new instance of ReadableBuffer which starts at the current index and contains n
bytes.
This method does not update the read index of the original buffer.