Class ByteUtil
-
- All Implemented Interfaces:
public class ByteUtil
-
-
Constructor Summary
Constructors Constructor Description ByteUtil()
-
Method Summary
Modifier and Type Method Description static Array<byte>combine(Array<Array<byte>> elements)static Array<Array<byte>>split(Array<byte> input, int firstLength, int secondLength)static Array<Array<byte>>split(Array<byte> input, int firstLength, int secondLength, int thirdLength)static Array<byte>trim(Array<byte> input, int length)static byteintsToByteHighAndLow(int highValue, int lowValue)static inthighBitsToInt(byte value)static Array<byte>longToByteArray(long value)static longbyteArray5ToLong(Array<byte> bytes, int offset)-
-
Method Detail
-
split
static Array<Array<byte>> split(Array<byte> input, int firstLength, int secondLength, int thirdLength)
-
intsToByteHighAndLow
static byte intsToByteHighAndLow(int highValue, int lowValue)
-
highBitsToInt
static int highBitsToInt(byte value)
-
longToByteArray
static Array<byte> longToByteArray(long value)
-
byteArray5ToLong
static long byteArray5ToLong(Array<byte> bytes, int offset)
-
-
-
-