|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.camelspotting.jotl.udp.BitUtil
public class BitUtil
Method Summary | |
---|---|
static int |
parse16BitNumber(byte[] input,
int offset)
Method for parsing 2 bytes. |
static int |
parse32BitNumber(byte[] input,
int offset)
Method for parsing 4 bytes. |
static long |
parse64BitNumber(byte[] input,
int offset)
Method for parsing 16 bytes. |
static int |
parse8BitNumber(byte[] input,
int offset)
Method for parsing 1 byte. |
static int |
toUnsignedInt(byte v)
|
static int[] |
toUnsignedIntegers(byte[] b)
|
static long[] |
toUnsignedLongs(byte[] b)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static long parse64BitNumber(byte[] input, int offset)
input
- where to find the bytesoffset
- where to start
public static int parse32BitNumber(byte[] input, int offset)
input
- where to find the bytesoffset
- where to start
public static int parse16BitNumber(byte[] input, int offset)
input
- where to find the bytesoffset
- where to start
public static int parse8BitNumber(byte[] input, int offset)
input
- where to find the bytesoffset
- where to start
public static int toUnsignedInt(byte v)
public static int[] toUnsignedIntegers(byte[] b)
public static long[] toUnsignedLongs(byte[] b)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |