public class DecodeUtils extends Object
| 构造器和说明 |
|---|
DecodeUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
readBool(byte[] bytes,
int byteOffset,
int bitOffset)
Decode bool value from binary data.
|
static boolean |
readBool(byte[] bytes,
int byteOffset,
int bitOffset,
BitOrder order)
Decode bool value from binary data.
|
static byte |
readByte(byte[] bytes,
int offset)
Decode byte value from binary data.
|
static byte[] |
readBytes(byte[] bytes,
int offset,
int length)
Decode byte array value from binary data.
|
static double |
readDouble(byte[] bytes,
int offset)
Decode double value from binary data.
|
static double |
readDouble(byte[] bytes,
int offset,
ByteOrder order)
Decode double value from binary data.
|
static float |
readFloat(byte[] bytes,
int offset)
Decode float value from binary data.
|
static float |
readFloat(byte[] bytes,
int offset,
ByteOrder order)
Decode float value from binary data.
|
static int |
readInt16(byte[] bytes,
int offset)
Decode int16 value from binary data.
|
static int |
readInt16(byte[] bytes,
int offset,
ByteOrder order)
Decode int16 value from binary data.
|
static int |
readInt32(byte[] bytes,
int offset)
Decode int32 value from binary data.
|
static int |
readInt32(byte[] bytes,
int offset,
ByteOrder order)
Decode int32 value from binary data.
|
static long |
readInt64(byte[] bytes,
int offset)
Decode int64 value from binary data.
|
static long |
readInt64(byte[] bytes,
int offset,
ByteOrder order)
Decode int64 value from binary data.
|
static int |
readInt8(byte[] bytes,
int offset)
Decode int8 value from binary data.
|
static short |
readShort(byte[] bytes,
int offset)
Decode short value from binary data.
|
static short |
readShort(byte[] bytes,
int offset,
ByteOrder order)
Decode short value from binary data.
|
static int |
readUInt16(byte[] bytes,
int offset)
Decode uint16 value from binary data.
|
static int |
readUInt16(byte[] bytes,
int offset,
ByteOrder order)
Decode uint16 value from binary data.
|
static long |
readUInt32(byte[] bytes,
int offset)
Decode uint32 value from binary data.
|
static long |
readUInt32(byte[] bytes,
int offset,
ByteOrder order)
Decode uint32 value from binary data.
|
static BigInteger |
readUInt64(byte[] bytes,
int offset)
Decode uint64 value from binary data.
|
static BigInteger |
readUInt64(byte[] bytes,
int offset,
ByteOrder order)
Decode uint64 value from binary data.
|
static int |
readUInt8(byte[] bytes,
int offset)
Decode uint8 value from binary data.
|
public static boolean readBool(byte[] bytes,
int byteOffset,
int bitOffset)
bytes - The binary data.byteOffset - The byte offset of the field in the binary data.bitOffset - The bit offset of the field in the binary data.public static boolean readBool(byte[] bytes,
int byteOffset,
int bitOffset,
BitOrder order)
bytes - The binary data.byteOffset - The byte offset of the field in the binary data.bitOffset - The bit offset of the field in the binary data.order - The bit order of the field in the binary data.public static byte readByte(byte[] bytes,
int offset)
bytes - The binary data.offset - The byte offset of the field in the binary data.public static short readShort(byte[] bytes,
int offset)
bytes - The binary data.offset - The byte offset of the field in the binary data.public static short readShort(byte[] bytes,
int offset,
ByteOrder order)
bytes - The binary data.offset - The byte offset of the field in the binary data.order - The byte order of the field in the binary data.public static int readInt8(byte[] bytes,
int offset)
bytes - The binary data.offset - The byte offset of the field in the binary data.public static int readInt16(byte[] bytes,
int offset)
bytes - The binary data.offset - The byte offset of the field in the binary data.public static int readInt16(byte[] bytes,
int offset,
ByteOrder order)
bytes - The binary data.offset - The byte offset of the field in the binary data.order - The byte order of the field in the binary data.public static int readInt32(byte[] bytes,
int offset)
bytes - The binary data.offset - The byte offset of the field in the binary data.public static int readInt32(byte[] bytes,
int offset,
ByteOrder order)
bytes - The binary data.offset - The byte offset of the field in the binary data.order - The byte order of the field in the binary data.public static long readInt64(byte[] bytes,
int offset)
bytes - The binary data.offset - The byte offset of the field in the binary data.public static long readInt64(byte[] bytes,
int offset,
ByteOrder order)
bytes - The binary data.offset - The byte offset of the field in the binary data.order - The byte order of the field in the binary data.public static int readUInt8(byte[] bytes,
int offset)
bytes - The binary data.offset - The byte offset of the field in the binary data.public static int readUInt16(byte[] bytes,
int offset)
bytes - The binary data.offset - The byte offset of the field in the binary data.public static int readUInt16(byte[] bytes,
int offset,
ByteOrder order)
bytes - The binary data.offset - The byte offset of the field in the binary data.order - The byte order of the field in the binary data.public static long readUInt32(byte[] bytes,
int offset)
bytes - The binary data.offset - The byte offset of the field in the binary data.public static long readUInt32(byte[] bytes,
int offset,
ByteOrder order)
bytes - The binary data.offset - The byte offset of the field in the binary data.order - The byte order of the field in the binary data.public static BigInteger readUInt64(byte[] bytes, int offset)
bytes - The binary data.offset - The byte offset of the field in the binary data.public static BigInteger readUInt64(byte[] bytes, int offset, ByteOrder order)
bytes - The binary data.offset - The byte offset of the field in the binary data.order - The byte order of the field in the binary data.public static float readFloat(byte[] bytes,
int offset)
bytes - The binary data.offset - The byte offset of the field in the binary data.public static float readFloat(byte[] bytes,
int offset,
ByteOrder order)
bytes - The binary data.offset - The byte offset of the field in the binary data.order - The byte order of the field in the binary data.public static double readDouble(byte[] bytes,
int offset)
bytes - The binary data.offset - The byte offset of the field in the binary data.public static double readDouble(byte[] bytes,
int offset,
ByteOrder order)
bytes - The binary data.offset - The byte offset of the field in the binary data.order - The byte order of the field in the binary data.public static byte[] readBytes(byte[] bytes,
int offset,
int length)
bytes - The binary data.offset - The byte offset of the field in the binary data.length - The length of the field in the binary data.Copyright © 2019–2025 indunet. All rights reserved.