osmq.util
Class DynByteArray
java.lang.Object
osmq.util.DynByteArray
- public class DynByteArray
- extends java.lang.Object
A dynamically resizeable byte array onto which bytes may be appended one at a time.
The internal array begins as a 16-byte element, and it is increased in 16-byte
increments as needed.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DynByteArray
public DynByteArray()
DynByteArray
public DynByteArray(int sz)
getBuffer
public byte[] getBuffer()
getBufferSize
public int getBufferSize()
clearContentSize
public void clearContentSize()
getContentSize
public int getContentSize()
setContentSize
public void setContentSize(int sz)
appendByte
public void appendByte(byte value)
getDuplicate
public byte[] getDuplicate()
toString
public java.lang.String toString()
initializeBuffer
public void initializeBuffer(int newsz)