public class BitConverter extends Object
| 构造器和说明 |
|---|
BitConverter() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
GetBytes(double value) |
static byte[] |
GetBytes(float value) |
static byte[] |
GetBytes(int value) |
static byte[] |
GetBytes(short value) |
static short |
ToInt16(byte[] value,
int startIndex) |
static int |
ToInt32(byte[] value,
int startIndex) |
static long |
ToInt64(byte[] value,
int startIndex) |
static int |
ToUInt16(byte[] value,
int startIndex) |
static long |
ToUInt32(byte[] value,
int startIndex) |
public static byte[] GetBytes(int value)
public static byte[] GetBytes(short value)
public static byte[] GetBytes(float value)
public static byte[] GetBytes(double value)
public static short ToInt16(byte[] value,
int startIndex)
public static int ToInt32(byte[] value,
int startIndex)
public static long ToInt64(byte[] value,
int startIndex)
public static int ToUInt16(byte[] value,
int startIndex)
public static long ToUInt32(byte[] value,
int startIndex)
Copyright © 2022. All rights reserved.