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