public class DataConvert extends Object
Constructor and Description |
---|
DataConvert() |
Modifier and Type | Method and Description |
---|---|
static int[] |
from16BE(byte[] b) |
static int[] |
from16LE(byte[] b) |
static int[] |
from24BE(byte[] b) |
static int[] |
from24LE(byte[] b) |
static int[] |
fromByte(byte[] b,
int depth,
boolean isBe)
Generic byte-array to integer-array conversion
Converts each depth-bit sequence from the input byte array into integer
|
static byte[] |
to16BE(int[] ia) |
static byte[] |
to16LE(int[] ia) |
static byte[] |
to24BE(int[] ia) |
static byte[] |
to24LE(int[] ia) |
static byte[] |
toByte(int[] ia,
int depth,
boolean isBe)
Generic integer-array to byte-array conversion
Converts each integer into depth-bit sequence in the output byte array
|
public static int[] from16BE(byte[] b)
public static int[] from24BE(byte[] b)
public static int[] from16LE(byte[] b)
public static int[] from24LE(byte[] b)
public static byte[] to16BE(int[] ia)
public static byte[] to24BE(int[] ia)
public static byte[] to16LE(int[] ia)
public static byte[] to24LE(int[] ia)
public static int[] fromByte(byte[] b, int depth, boolean isBe)
b
- Input bytesdepth
- Bit depth of the integersisBe
- If integers are big-endian or little-endianpublic static byte[] toByte(int[] ia, int depth, boolean isBe)
ia
- Integer arraydepth
- Bit depth of the integersisBe
- If integers are big-endian or little-endianCopyright © 2019. All rights reserved.