public class Utils
extends java.lang.Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
toBytes(int value)
Encodes the given big endian integer to a big endian ordered array of bytes.
|
static int |
toInt32(byte[] bytes)
Constructs a big endian integer from the given big endian ordered
byte data.
|
public static int toInt32(byte[] bytes)
bytes
- The bytes to use.public static byte[] toBytes(int value)
value
- The integer value to encode.