public class TypeConvert extends Object
| 构造器和说明 |
|---|
TypeConvert() |
| 限定符和类型 | 方法和说明 |
|---|---|
static long |
ByteArrayToLong(byte[] v_byte,
int v_nBeginPos,
int nBytes)
byte数组转long
|
static void |
LongToByteArray(long nData,
byte[] v_bytes,
int nBeginPos,
int nBytes)
long转数组
|
static byte[] |
LongToByteArray(long nValue,
int nBytes)
Long转数组
|
static byte[] |
StringToByteArray(String sValue)
String转byte数组
|
public static long ByteArrayToLong(byte[] v_byte,
int v_nBeginPos,
int nBytes)
v_byte - 转换的byte数组v_nBeginPos - 转换的下标nBytes - 转换的长度public static void LongToByteArray(long nData,
byte[] v_bytes,
int nBeginPos,
int nBytes)
nData - Long值v_bytes - byte数组nBeginPos - 转换的下标nBytes - 转换的长度public static byte[] LongToByteArray(long nValue,
int nBytes)
nValue - 转换的longnBytes - 转换的长度public static byte[] StringToByteArray(String sValue)
sValue - 转换的StringCopyright © 2019. All rights reserved.