Expert: Resets the pool to its initial state reusing the first buffer. Calling
Advances the pool to its next buffer. This method should be called once after
the constructor to ini
Creates a new byte slice with the given starting size and returns the slices
offset in the pool.
Appends the bytes in the provided BytesRef at the current position.
Allocates a new slice with the given size.
Reads bytes bytes out of the pool starting at the given offset with the given
length into the given
Fill the provided BytesRef with the bytes at the specified offset/length slice.
This will avoid copy
Read a single byte at the given offset.
Set the given BytesRef so that its content is equal to the ref.length bytes
starting at offset. Most