public class ByteUtil
extends java.lang.Object
Constructor and Description |
---|
ByteUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
floatToHalf(float f) |
static byte[] |
get2Bytes(int i) |
static byte[] |
get4Bytes(int i) |
static byte[] |
get4BytesInv(int i) |
static byte[] |
get8Bytes(long i) |
static int |
toInt(byte[] in) |
static int |
toInt(byte[] in,
int ofs) |
static int |
toInt(byte in0,
byte in1,
byte in2,
byte in3) |
static long |
toLong(byte[] in) |
public static final byte[] get2Bytes(int i)
public static final byte[] get4Bytes(int i)
public static final byte[] get4BytesInv(int i)
public static final byte[] get8Bytes(long i)
public static final long toLong(byte[] in)
public static final int toInt(byte in0, byte in1, byte in2, byte in3)
public static final int toInt(byte[] in)
public static final int toInt(byte[] in, int ofs)
public static final int floatToHalf(float f)