The
ArrayBuffer
is intended to be a general purpose byte buffer that stores bytes in an single internal byte array. The intended use of this buffer is to provide a simple buffer object to read and write bytes with. In particular this provides a high performance buffer that can be used to read and write bytes fast.
This provides several convenience methods which make the use of the buffer easy and useful. This buffer allows an initial capacity to be specified however if there is a need for extra space to be added to buffer then the append
methods will expand the capacity of the buffer as needed.
@author Niall Gallagher
@see org.simpleframework.util.buffer.ArrayAllocator