Constructor and Description |
---|
Bytes() |
Modifier and Type | Method and Description |
---|---|
static int |
beS1(byte[] data,
int bci)
Gets a signed 1-byte value.
|
static int |
beS2(byte[] data,
int bci)
Gets a signed 2-byte big-endian value.
|
static int |
beS4(byte[] data,
int bci)
Gets a signed 4-byte big-endian value.
|
static int |
beSVar(byte[] data,
int bci,
boolean fourByte)
Gets either a signed 2-byte or a signed 4-byte big-endian value.
|
static int |
beU1(byte[] data,
int bci)
Gets an unsigned 1-byte value.
|
static int |
beU2(byte[] data,
int bci)
Gets an unsigned 2-byte big-endian value.
|
public Bytes()
public static int beS1(byte[] data, int bci)
data
- the array containing the databci
- the start index of the value to retrievebci
in array data
public static int beS2(byte[] data, int bci)
data
- the array containing the databci
- the start index of the value to retrievebci
in array data
public static int beU1(byte[] data, int bci)
data
- the array containing the databci
- the start index of the value to retrievebci
in array data
public static int beU2(byte[] data, int bci)
data
- the array containing the databci
- the start index of the value to retrievebci
in array data
public static int beS4(byte[] data, int bci)
data
- the array containing the databci
- the start index of the value to retrievebci
in array data
public static int beSVar(byte[] data, int bci, boolean fourByte)
data
- the array containing the databci
- the start index of the value to retrievefourByte
- if true, this method will return a 4-byte valuebci
in array data