public final class Utils extends Object
Modifier and Type | Method and Description |
---|---|
static int |
getSemiOctet(byte[] buf,
int pos)
Gets a semi-octet from the given byte array.
|
static int |
getSemiOctetLeftToRight(byte[] buf,
int pos)
Gets a semi-octet from the given byte array.
|
static void |
setSemiOctet(byte[] buf,
int pos,
int value)
Sets a semi-octet in the given byte array to the given value.
|
static void |
setSemiOctetLeftToRight(byte[] buf,
int pos,
int value)
Sets a semi-octet in the given byte array to the given value.
|
public static int getSemiOctetLeftToRight(byte[] buf, int pos)
buf
- byte[]pos
- which semi-octet to get, counting from 0, high semi-octet firstpublic static int getSemiOctet(byte[] buf, int pos)
buf
- byte[]pos
- which semi-octet to get, counting from 0, low semi-octet firstpublic static void setSemiOctetLeftToRight(byte[] buf, int pos, int value)
buf
- byte[]pos
- which semi-octet to set, counting from 0, high semi-octet firstvalue
- to set the semi-octet topublic static void setSemiOctet(byte[] buf, int pos, int value)
buf
- byte[]pos
- which semi-octet to set, counting from 0, low semi-octet firstvalue
- to set the semi-octet to