public class DataUtils extends Object
| Constructor and Description |
|---|
DataUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int[] |
BeToIntArray(byte[] bytes) |
static byte |
byteHigh(int b) |
static byte |
byteLow(int b) |
static int |
dwordFromWords(int l,
int h) |
static int |
dwordHigh(long l) |
static int |
dwordLow(long l) |
static int |
fromAscii(char h,
char l) |
static long |
Int64FromDwords(int l,
int h) |
static int[] |
LeToIntArray(byte[] bytes) |
static String |
toAscii(byte b) |
static String |
toAscii(byte[] bytes) |
static String |
toAscii(byte[] bytes,
int offset,
int length) |
static boolean[] |
toBitsArray(byte[] bytes,
int bitCount) |
static byte[] |
toByteArray(boolean[] bits) |
static byte[] |
toByteArray(float f32) |
static byte[] |
toByteArray(int i32) |
static byte[] |
toByteArray(int[] i16) |
static byte[] |
toByteArray(short i16) |
static byte[] |
toByteArray(short[] src) |
static float |
toFloat(byte[] bytes) |
static String |
toHexString(byte b) |
static int |
toShort(int h,
int l) |
static int |
wordFromBytes(int l,
int h) |
static int |
wordHigh(int b) |
static int |
wordLow(int b) |
public static int fromAscii(char h,
char l)
public static String toAscii(byte b)
public static String toAscii(byte[] bytes)
public static String toAscii(byte[] bytes, int offset, int length)
public static String toHexString(byte b)
public static byte[] toByteArray(boolean[] bits)
public static boolean[] toBitsArray(byte[] bytes,
int bitCount)
public static int[] BeToIntArray(byte[] bytes)
public static int[] LeToIntArray(byte[] bytes)
public static byte[] toByteArray(int[] i16)
public static byte[] toByteArray(short[] src)
public static byte[] toByteArray(short i16)
public static int toShort(int h,
int l)
public static byte[] toByteArray(int i32)
public static float toFloat(byte[] bytes)
public static byte[] toByteArray(float f32)
public static byte byteLow(int b)
public static byte byteHigh(int b)
public static int wordLow(int b)
public static int wordHigh(int b)
public static int dwordLow(long l)
public static int dwordHigh(long l)
public static int wordFromBytes(int l,
int h)
public static int dwordFromWords(int l,
int h)
public static long Int64FromDwords(int l,
int h)
Copyright © 2018. All rights reserved.