java.lang.Object
net.anwiba.commons.utilities.ByteUtilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doublestatic doublegetDoubleBigEndian(byte[] destination, int pos) static doublegetDoubleLittleEndian(byte[] destination, int pos) static floatstatic floatgetFloatBigEndian(byte[] destination, int pos) static floatgetFloatLittleEndian(byte[] destination, int pos) static intgetInteger(byte[] destination, int pos, ByteOrder byteOrder) static intgetIntegerBigEndian(byte[] destination, int pos) static intgetIntegerLittleEndian(byte[] destination, int pos) static shortstatic shortgetShortLittleEndian(byte[] destination, int pos) static intstatic intsetDoubleBigEndian(double value, byte[] destination, int pos) static intsetDoubleLittleEndian(double value, byte[] destination, int pos) static intstatic intsetFloatBigEndian(float value, byte[] destination, int pos) static intsetFloatLittleEndian(float value, byte[] destination, int pos) static intsetInteger(int value, byte[] destination, int pos, ByteOrder byteOrder) static intsetIntegerBigEndian(int value, byte[] destination, int pos) static intsetIntegerLittleEndian(int value, byte[] destination, int pos)
-
Constructor Details
-
ByteUtilities
public ByteUtilities()
-
-
Method Details
-
getIntegerLittleEndian
public static int getIntegerLittleEndian(byte[] destination, int pos) -
getIntegerBigEndian
public static int getIntegerBigEndian(byte[] destination, int pos) -
getInteger
-
getShortLittleEndian
public static short getShortLittleEndian(byte[] destination, int pos) -
getShort
-
setIntegerLittleEndian
public static int setIntegerLittleEndian(int value, byte[] destination, int pos) -
setIntegerBigEndian
public static int setIntegerBigEndian(int value, byte[] destination, int pos) -
setInteger
-
getDoubleBigEndian
public static double getDoubleBigEndian(byte[] destination, int pos) -
getDoubleLittleEndian
public static double getDoubleLittleEndian(byte[] destination, int pos) -
getDouble
-
setDoubleBigEndian
public static int setDoubleBigEndian(double value, byte[] destination, int pos) -
setDoubleLittleEndian
public static int setDoubleLittleEndian(double value, byte[] destination, int pos) -
setDouble
-
getFloatBigEndian
public static float getFloatBigEndian(byte[] destination, int pos) -
getFloatLittleEndian
public static float getFloatLittleEndian(byte[] destination, int pos) -
getFloat
-
setFloatBigEndian
public static int setFloatBigEndian(float value, byte[] destination, int pos) -
setFloatLittleEndian
public static int setFloatLittleEndian(float value, byte[] destination, int pos) -
setFloat
-