Class ByteUtilities

java.lang.Object
net.anwiba.commons.utilities.ByteUtilities

public class ByteUtilities extends Object
  • 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

      public static int getInteger(byte[] destination, int pos, ByteOrder byteOrder)
    • getShortLittleEndian

      public static short getShortLittleEndian(byte[] destination, int pos)
    • getShort

      public static short getShort(byte[] destination, int pos, 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, 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, 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, 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, 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, ByteOrder byteOrder)