Concatenate this buffer with the given buffer.
Concatenate this buffer with the given buffer.
The number of bytes in the buffer
The number of bytes in the buffer
Returns a new buffer representing a slice of this buffer, delimited
by the indices from
inclusive and until
exclusive: [from, until)
.
Returns a new buffer representing a slice of this buffer, delimited
by the indices from
inclusive and until
exclusive: [from, until)
.
Out of bounds indices are truncated. Negative indices are not accepted.
Write the entire contents of the buffer into the given array at the given offset.
Write the entire contents of the buffer into the given array at the given offset. Partial writes aren't supported directly through this API; they easily performed by first slicing the buffer.
when output
is too small to
contain all the data.
A buffer representing the remaining bytes in the given ByteBuffer. The given buffer will not be affected.
Modifications to the ByteBuffer's content will be visible to the resulting Buf. The ByteBuffer should be immutable in practice.