Package com.mchange.lang
Class LongUtils
java.lang.Object
com.mchange.lang.LongUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
byteArrayFromLong
(long l) static int
fullHashLong
(long l) static int
hashLong
(long l) static long
longFromByteArray
(byte[] bytes, int offset) static long
longFromByteArrayLittleEndian
(byte[] bytes, int offset) static void
longIntoByteArray
(long l, int offset, byte[] bytes) static void
longIntoByteArrayLittleEndian
(long l, int offset, byte[] bytes)
-
Method Details
-
longFromByteArray
public static long longFromByteArray(byte[] bytes, int offset) -
byteArrayFromLong
public static byte[] byteArrayFromLong(long l) -
longIntoByteArray
public static void longIntoByteArray(long l, int offset, byte[] bytes) -
longFromByteArrayLittleEndian
public static long longFromByteArrayLittleEndian(byte[] bytes, int offset) -
longIntoByteArrayLittleEndian
public static void longIntoByteArrayLittleEndian(long l, int offset, byte[] bytes) -
fullHashLong
public static int fullHashLong(long l) -
hashLong
public static int hashLong(long l)
-