Allocate a new ByteBuffer
on the heap
Allocate a new ByteBuffer
on the heap
size of desired ByteBuffer
Get the String
representation of the ByteBuffer
Check the array of buffers to ensure they are all empty
Check the array of buffers to ensure they are all empty
ByteBuffer
s to check for data
true if they are empty, false if there is data remaining
Check the array of buffers to ensure they are all empty
Check the array of buffers to ensure they are all empty
ByteBuffer
s to check for data
true if they are empty, false if there is data remaining
Join the two buffers into a single ByteBuffer.
Join the two buffers into a single ByteBuffer. This method is guaranteed to return a ByteBuffer, but it may be empty.
Make a copy of the ByteBuffer, depleting the input buffer
Replaces any empty buffers except for the last one with the emptyBuffer
to allow GC of depleted ByteBuffers and returns the index of the first
non-empty ByteBuffer, or the last index, whichever comes first.
Cached empty ByteBuffer
Cached Future
containing and empty ByteBuffer
Merge the ByteBuffer
s into a single buffer
Make a String from the collection of ByteBuffers
Take a slice of bytes from the ByteBuffer
, consuming the bytes.
Take a slice of bytes from the ByteBuffer
, consuming the bytes.
ByteBuffer
to slice
number of bytes to slice. Must be less than or equal to the number of bytes remaining in buffer
.
the resulting view