- <init>
Constructs a new instance of ByteBuffer with the specified capacity. Buffer is
initialized with the
- add
Adds a byte array to this buffer starting from the offset up to the length
requested. If the free sp
- capacity
Gets the total buffer allocated capacity, not the remaining capacity. Using
capacity()-size() would
- checkOffsetLength
Helper method for validating if an offset and length are valid for a given byte
array. Checks if the
- circularByteBufferInitializer
Intializes the new CircularByteBuffer with all parameters that characterize a
CircularByteBuffer.
- copy
Most efficient copy of this ByteBuffer. The internal buffer is copied to the new
ByteBuffer using ei
- free
Gets the number of free bytes this buffer has remaining for writing.
- get
Gets the byte at the given index relative to the beginning the circular buffer.
The index must be a
- getUnchecked
Internal unchecked version of get(). Will only throw a Runtime exception which
should happen as long
- indexOf
Returns the index within this buffer of the first occurrence of the specified
bytes after the offset
- isFull
Tests if the buffer is full.
- occurrences
Counts the number of occurrences of the byte array in thisByteBuffer. This
method will not overlap a