| Modifier and Type | Field and Description |
|---|---|
static HexNibblesPrefixer |
LL |
static HexNibblesPrefixer |
LLL |
| Constructor and Description |
|---|
HexNibblesPrefixer(int nDigits) |
| Modifier and Type | Method and Description |
|---|---|
int |
decodeLength(byte[] b,
int offset)
Decodes an encoded length.
|
void |
encodeLength(int length,
byte[] b)
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 static final HexNibblesPrefixer LL
public static final HexNibblesPrefixer LLL
public void encodeLength(int length,
byte[] b)
PrefixerencodeLength in interface Prefixerlength - The length to be encoded.b - The byte array to fill with the encoded length.public int decodeLength(byte[] b,
int offset)
PrefixerdecodeLength in interface Prefixerb - The byte array to scan for the length.offset - The offset to start scanning from.public int getPackedLength()
PrefixergetPackedLength in interface Prefixer