Package net.anwiba.commons.utilities
Class ByteUtilities
- java.lang.Object
-
- net.anwiba.commons.utilities.ByteUtilities
-
public class ByteUtilities extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ByteUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doublegetDouble(byte[] destination, int pos, java.nio.ByteOrder byteOrder)static doublegetDoubleBigEndian(byte[] destination, int pos)static doublegetDoubleLittleEndian(byte[] destination, int pos)static floatgetFloat(byte[] destination, int pos, java.nio.ByteOrder byteOrder)static floatgetFloatBigEndian(byte[] destination, int pos)static floatgetFloatLittleEndian(byte[] destination, int pos)static intgetInteger(byte[] destination, int pos, java.nio.ByteOrder byteOrder)static intgetIntegerBigEndian(byte[] destination, int pos)static intgetIntegerLittleEndian(byte[] destination, int pos)static shortgetShort(byte[] destination, int pos, java.nio.ByteOrder byteOrder)static shortgetShortLittleEndian(byte[] destination, int pos)static intsetDouble(double value, byte[] destination, int pos, java.nio.ByteOrder byteOrder)static intsetDoubleBigEndian(double value, byte[] destination, int pos)static intsetDoubleLittleEndian(double value, byte[] destination, int pos)static intsetFloat(float value, byte[] destination, int pos, java.nio.ByteOrder byteOrder)static intsetFloatBigEndian(float value, byte[] destination, int pos)static intsetFloatLittleEndian(float value, byte[] destination, int pos)static intsetInteger(int value, byte[] destination, int pos, java.nio.ByteOrder byteOrder)static intsetIntegerBigEndian(int value, byte[] destination, int pos)static intsetIntegerLittleEndian(int value, byte[] destination, int pos)
-
-
-
Method Detail
-
getIntegerLittleEndian
public static int getIntegerLittleEndian(byte[] destination, int pos)
-
getIntegerBigEndian
public static int getIntegerBigEndian(byte[] destination, int pos)
-
getInteger
public static int getInteger(byte[] destination, int pos, java.nio.ByteOrder byteOrder)
-
getShortLittleEndian
public static short getShortLittleEndian(byte[] destination, int pos)
-
getShort
public static short getShort(byte[] destination, int pos, java.nio.ByteOrder byteOrder)
-
setIntegerLittleEndian
public static int setIntegerLittleEndian(int value, byte[] destination, int pos)
-
setIntegerBigEndian
public static int setIntegerBigEndian(int value, byte[] destination, int pos)
-
setInteger
public static int setInteger(int value, byte[] destination, int pos, java.nio.ByteOrder byteOrder)
-
getDoubleBigEndian
public static double getDoubleBigEndian(byte[] destination, int pos)
-
getDoubleLittleEndian
public static double getDoubleLittleEndian(byte[] destination, int pos)
-
getDouble
public static double getDouble(byte[] destination, int pos, java.nio.ByteOrder byteOrder)
-
setDoubleBigEndian
public static int setDoubleBigEndian(double value, byte[] destination, int pos)
-
setDoubleLittleEndian
public static int setDoubleLittleEndian(double value, byte[] destination, int pos)
-
setDouble
public static int setDouble(double value, byte[] destination, int pos, java.nio.ByteOrder byteOrder)
-
getFloatBigEndian
public static float getFloatBigEndian(byte[] destination, int pos)
-
getFloatLittleEndian
public static float getFloatLittleEndian(byte[] destination, int pos)
-
getFloat
public static float getFloat(byte[] destination, int pos, java.nio.ByteOrder byteOrder)
-
setFloatBigEndian
public static int setFloatBigEndian(float value, byte[] destination, int pos)
-
setFloatLittleEndian
public static int setFloatLittleEndian(float value, byte[] destination, int pos)
-
setFloat
public static int setFloat(float value, byte[] destination, int pos, java.nio.ByteOrder byteOrder)
-
-