Method Summary |
|
public void | append(byte b) Appends byte to packed data. |
public void | appendBytes(byte[] bytes) Appends given bytes to packed data. |
public void | appendInt(int value) Appends a 4-byte rpresentation of given integer value to packed data. |
public byte | extract() Extracts next byte from packed data. |
public byte[] | extractBytes(int length) Extracts next requested amount of bytes from packed data. |
public int | extractInt() Extracts integer value previously stored by appendInt() from byte
represnetation. |
public byte[] | release() Removes internal reference to current byte array, returning
the reference outside. |
public void | reset(byte[] buffer) Resets state, setting packed data destination to given array
and current offset to 0. |
public void | reset() Resets state, setting current offset to 0. |