- <init>
Creates an instance of ByteArrayBuffer with the given initial capacity.
- append
Appends len chars to this buffer from the given source array starting at index
off. The capacity of
- array
Returns reference to the underlying byte array.
- length
Returns the length of the buffer (byte count).
- toByteArray
Converts the content of this buffer to an array of bytes.
- byteAt
Returns the byte value in this buffer at the specified index. The index argument
must be greater tha
- clear
Clears content of the buffer. The underlying byte array is not resized.
- capacity
Returns the current capacity. The capacity is the amount of storage available
for newly appended byt
- ensureCapacity
Ensures that the capacity is at least equal to the specified minimum. If the
current capacity is les
- indexOf
Returns the index within this buffer of the first occurrence of the specified
byte, starting the sea
- isFull
Returns true if this buffer is full, that is, its #length() is equal to its
#capacity().
- setLength
Sets the length of the buffer. The new length value is expected to be less than
the current capacity