public void writeBytes(byte[] value) { char[] result = CharsetHelper.bytesToCharacters(value, charset); append(result); }
public void writeByte(byte value) { char[] result = CharsetHelper.bytesToCharacters(new byte[] {value}, charset); append(result); }
public byte[] toByteArray() { return CharsetHelper.charactersToBytes(data, 0, size, charset); }