Package org.lionsoul.ip2region.xdb
Class LittleEndian
java.lang.Object
org.lionsoul.ip2region.xdb.LittleEndian
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetUint16(byte[] buff, int offset) static longgetUint32(byte[] buff, int offset) static voidput(byte[] buff, int offset, long value, int bytes) static voidputUint16(byte[] buff, int offset, int value) static voidputUint32(byte[] buff, int offset, long value)
-
Field Details
-
shiftIndex
public static final int[] shiftIndex
-
-
Constructor Details
-
LittleEndian
public LittleEndian()
-
-
Method Details
-
put
public static void put(byte[] buff, int offset, long value, int bytes) -
putUint32
public static void putUint32(byte[] buff, int offset, long value) -
putUint16
public static void putUint16(byte[] buff, int offset, int value) -
getUint32
public static long getUint32(byte[] buff, int offset) -
getUint16
public static int getUint16(byte[] buff, int offset)
-