public class ByteUtils extends Object
| 构造器和说明 |
|---|
ByteUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
decodeInt16(byte[] data)
对16位长度byte[],进行int解码
|
static int |
decodeInt16(byte[] data,
boolean msbFirst)
对16位长度byte[],进行int解码
|
static int |
decodeInt16(byte[] data,
int offset,
boolean msbFirst)
对16位长度byte[],进行int解码
|
static long |
decodeInt32(byte[] data)
对32位长度byte[],进行int解码
|
static long |
decodeInt32(byte[] data,
boolean msbFirst)
对32位长度byte[],进行int解码
|
static long |
decodeInt32(byte[] data,
int offset,
boolean msbFirst)
对32位长度byte[],进行int解码
|
public static int decodeInt16(byte[] data,
int offset,
boolean msbFirst)
data - 数组offset - 偏移量msbFirst - 高位在前public static int decodeInt16(byte[] data,
boolean msbFirst)
data - 数组msbFirst - 高位在前public static int decodeInt16(byte[] data)
data - 数组public static long decodeInt32(byte[] data,
int offset,
boolean msbFirst)
data - 数组offset - 偏移量msbFirst - 高位在前public static long decodeInt32(byte[] data,
boolean msbFirst)
data - 数组msbFirst - 高位在前public static long decodeInt32(byte[] data)
data - 数组Copyright © 2023. All rights reserved.