public static class IF_FBINARY.FullyConsumingPrefixer extends java.lang.Object implements Prefixer
| Modifier and Type | Method and Description |
|---|---|
int |
decodeLength(byte[] bytes,
int offset)
Decodes an encoded length.
|
void |
encodeLength(int length,
byte[] bytes)
Fills a byte array with the field length data in raw form.
|
int |
getPackedLength()
Returns the number of bytes taken up by the length encoding.
|
public void encodeLength(int length,
byte[] bytes)
PrefixerencodeLength in interface Prefixerlength - The length to be encoded.bytes - The byte array to fill with the encoded length.public int decodeLength(byte[] bytes,
int offset)
PrefixerdecodeLength in interface Prefixerbytes - The byte array to scan for the length.offset - The offset to start scanning from.public int getPackedLength()
PrefixergetPackedLength in interface Prefixer