public class EndianTools
extends java.lang.Object
Constructor and Description |
---|
EndianTools() |
Modifier and Type | Method and Description |
---|---|
static int |
decodeIntBE(byte[] b,
int off) |
static int |
decodeIntLE(byte[] b,
int off) |
static long |
decodeLongBE(byte[] b,
int off) |
static long |
decodeLongLE(byte[] b,
int off) |
static short |
decodeShortBE(byte[] b,
int off) |
static short |
decodeShortLE(byte[] b,
int off) |
static long |
decodeUIntBE(byte[] b,
int off) |
static long |
decodeUIntLE(byte[] b,
int off) |
static int |
decodeUShortBE(byte[] b,
int off) |
static int |
decodeUShortLE(byte[] b,
int off) |
static void |
encodeIntBE(int v,
byte[] b,
int off) |
static void |
encodeIntLE(int v,
byte[] b,
int off) |
static void |
encodeLongBE(long v,
byte[] b,
int off) |
static void |
encodeLongLE(long v,
byte[] b,
int off) |
static void |
encodeShortBE(int v,
byte[] b,
int off) |
static void |
encodeShortLE(int v,
byte[] b,
int off) |
public static long decodeLongBE(byte[] b, int off)
public static long decodeUIntBE(byte[] b, int off)
public static int decodeUShortBE(byte[] b, int off)
public static int decodeIntBE(byte[] b, int off)
public static short decodeShortBE(byte[] b, int off)
public static long decodeLongLE(byte[] b, int off)
public static long decodeUIntLE(byte[] b, int off)
public static int decodeUShortLE(byte[] b, int off)
public static int decodeIntLE(byte[] b, int off)
public static short decodeShortLE(byte[] b, int off)
public static void encodeLongBE(long v, byte[] b, int off)
public static void encodeIntBE(int v, byte[] b, int off)
public static void encodeShortBE(int v, byte[] b, int off)
public static void encodeLongLE(long v, byte[] b, int off)
public static void encodeIntLE(int v, byte[] b, int off)
public static void encodeShortLE(int v, byte[] b, int off)