public final class Varint32Decoder
extends java.lang.Object
| Constructor and Description |
|---|
Varint32Decoder() |
| Modifier and Type | Method and Description |
|---|---|
static int |
decodeToInt(int initialPosition,
byte[] data,
com.smarttech.toolsense.block.Varint32Decoder.ReturnNextPosition next_position_rtn)
Decodes variable length 32 bit integers encoded using varint 128 encoding from a supplied
position in a buffer.
|
public static int decodeToInt(int initialPosition,
byte[] data,
com.smarttech.toolsense.block.Varint32Decoder.ReturnNextPosition next_position_rtn)
initialPosition - array index of the first byte of the varint to be decodeddata - the buffer containing a varintnext_position_rtn - out parameter containing the array index of the byte following the decoded int