Class ByteUtil

java.lang.Object
software.sava.core.encoding.ByteUtil

public final class ByteUtil extends Object
  • Method Details

    • putInt16LE

      public static void putInt16LE(byte[] b, int off, int val)
    • putInt16LE

      public static void putInt16LE(byte[] b, int off, short val)
    • putInt32LE

      public static void putInt32LE(byte[] b, int off, int val)
    • putInt64LE

      public static void putInt64LE(byte[] b, int off, long val)
    • putFloat32LE

      public static void putFloat32LE(byte[] b, int off, double val)
    • putFloat32LE

      public static void putFloat32LE(byte[] b, int off, float val)
    • putFloat64LE

      public static void putFloat64LE(byte[] b, int off, double val)
    • getFloat32LE

      public static float getFloat32LE(byte[] b, int off)
    • getFloat64LE

      public static double getFloat64LE(byte[] b, int off)
    • getInt8LE

      public static int getInt8LE(byte[] b, int off)
    • getInt16LE

      public static short getInt16LE(byte[] b, int off)
    • getInt32LE

      public static int getInt32LE(byte[] b, int off)
    • getInt64LE

      public static long getInt64LE(byte[] b, int off)
    • putIntLE

      public static int putIntLE(byte[] data, int offset, BigInteger val, int byteSize)
    • putInt128LE

      public static int putInt128LE(byte[] data, int offset, BigInteger val)
    • getUInt128LE

      public static BigInteger getUInt128LE(byte[] data, int offset)
    • getInt128LE

      public static BigInteger getInt128LE(byte[] data, int offset)
    • putInt256LE

      public static int putInt256LE(byte[] data, int offset, BigInteger val)
    • getUInt256LE

      public static BigInteger getUInt256LE(byte[] data, int offset)
    • getInt256LE

      public static BigInteger getInt256LE(byte[] data, int offset)
    • indexOf

      public static int indexOf(byte[] data, int start, int end, byte[] sub, int subStart, int subEnd)
    • indexOf

      public static int indexOf(byte[] data, int start, byte[] sub, int subStart)
    • indexOf

      public static int indexOf(byte[] data, int start, byte[] sub)
    • indexOf

      public static int indexOf(byte[] data, byte[] sub)
    • reverse

      public static byte[] reverse(byte[] bytes, int offset, int len)
    • reverse

      public static byte[] reverse(byte[] bytes, int len)
    • reverse

      public static byte[] reverse(byte[] bytes)
    • fixedLength

      public static byte[] fixedLength(byte[] bytes, int length)
    • fixedLength

      public static byte[] fixedLength(String val, int length, Charset charset)
    • fixedLength

      public static byte[] fixedLength(String val, int length)