java.lang.Object
software.sava.core.encoding.ByteUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]fixedLength(byte[] bytes, int length) static byte[]fixedLength(String val, int length) static byte[]fixedLength(String val, int length, Charset charset) static floatgetFloat32LE(byte[] b, int off) static doublegetFloat64LE(byte[] b, int off) static BigIntegergetInt128LE(byte[] data, int offset) static shortgetInt16LE(byte[] b, int off) static BigIntegergetInt256LE(byte[] data, int offset) static intgetInt32LE(byte[] b, int off) static longgetInt64LE(byte[] b, int off) static intgetInt8LE(byte[] b, int off) static BigIntegergetUInt128LE(byte[] data, int offset) static BigIntegergetUInt256LE(byte[] data, int offset) static intindexOf(byte[] data, byte[] sub) static intindexOf(byte[] data, int start, byte[] sub) static intindexOf(byte[] data, int start, byte[] sub, int subStart) static intindexOf(byte[] data, int start, int end, byte[] sub, int subStart, int subEnd) static voidputFloat32LE(byte[] b, int off, double val) static voidputFloat32LE(byte[] b, int off, float val) static voidputFloat64LE(byte[] b, int off, double val) static intputInt128LE(byte[] data, int offset, BigInteger val) static voidputInt16LE(byte[] b, int off, int val) static voidputInt16LE(byte[] b, int off, short val) static intputInt256LE(byte[] data, int offset, BigInteger val) static voidputInt32LE(byte[] b, int off, int val) static voidputInt64LE(byte[] b, int off, long val) static intputIntLE(byte[] data, int offset, BigInteger val, int byteSize) static byte[]reverse(byte[] bytes) static byte[]reverse(byte[] bytes, int len) static byte[]reverse(byte[] bytes, int offset, int len)
-
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
-
putInt128LE
-
getUInt128LE
-
getInt128LE
-
putInt256LE
-
getUInt256LE
-
getInt256LE
-
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
-
fixedLength
-