public interface BinaryInterpreter
| Modifier and Type | Method and Description |
|---|---|
int |
getPackedLength(int nBytes)
Returns the number of bytes required to interpret a byte array of length
nBytes.
|
void |
interpret(byte[] data,
byte[] b,
int offset)
Converts the binary data into a different interpretation or coding.
|
byte[] |
uninterpret(byte[] rawData,
int offset,
int length)
Converts the raw byte array into a uninterpreted byte array.
|
void interpret(byte[] data,
byte[] b,
int offset)
data - The data to be interpreted.b - The byte array to write the interpreted data to.offset - The starting position in b.byte[] uninterpret(byte[] rawData,
int offset,
int length)
rawData - The interpreted data.offset - The index in rawData to start uninterpreting at.length - The number of uninterpreted bytes to uninterpret. This number may be
different from the number of raw bytes that are uninterpreted.int getPackedLength(int nBytes)