public class EncodeUtils extends Object
| 构造器和说明 |
|---|
EncodeUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
writeBool(byte[] bytes,
int byteOffset,
int bitOffset,
BitOrder order,
boolean value)
Encode boolean values into binary data.
|
static void |
writeBool(byte[] bytes,
int byteOffset,
int bitOffset,
boolean value)
Encode boolean values into binary data.
|
static void |
writeByte(byte[] bytes,
int offset,
byte value)
Encode byte values into binary data.
|
static void |
writeBytes(byte[] bytes,
int offset,
byte[] values)
Encode byte array value into binary data.
|
static void |
writeDouble(byte[] bytes,
int offset,
ByteOrder order,
double value)
Encode double value into binary data.
|
static void |
writeDouble(byte[] bytes,
int offset,
double value)
Encode double value into binary data.
|
static void |
writeFloat(byte[] bytes,
int offset,
ByteOrder order,
float value)
Encode float value into binary data.
|
static void |
writeFloat(byte[] bytes,
int offset,
float value)
Encode float value into binary data.
|
static void |
writeInt16(byte[] bytes,
int offset,
ByteOrder order,
int value)
Encode int16 value into binary data.
|
static void |
writeInt16(byte[] bytes,
int offset,
int value)
Encode int16 value into binary data.
|
static void |
writeInt32(byte[] bytes,
int offset,
ByteOrder order,
int value)
Encode int32 value into binary data.
|
static void |
writeInt32(byte[] bytes,
int offset,
int value)
Encode int32 value into binary data.
|
static void |
writeInt64(byte[] bytes,
int offset,
ByteOrder order,
long value)
Encode int64 value into binary data.
|
static void |
writeInt64(byte[] bytes,
int offset,
long value)
Encode int64 value into binary data.
|
static void |
writeInt8(byte[] bytes,
int offset,
int value)
Encode int8 value into binary data.
|
static void |
writeShort(byte[] bytes,
int offset,
ByteOrder order,
short value)
Encode short value into binary data.
|
static void |
writeShort(byte[] bytes,
int offset,
short value)
Encode short value into binary data.
|
static void |
writeUInt16(byte[] bytes,
int offset,
ByteOrder order,
int value)
Encode uint16 value into binary data.
|
static void |
writeUInt16(byte[] bytes,
int offset,
int value)
Encode uint16 value into binary data.
|
static void |
writeUInt32(byte[] bytes,
int offset,
ByteOrder order,
long value)
Encode uint32 value into binary data.
|
static void |
writeUInt32(byte[] bytes,
int offset,
long value)
Encode uint32 value into binary data.
|
static void |
writeUInt64(byte[] bytes,
int offset,
BigInteger value)
Encode uint64 value into binary data.
|
static void |
writeUInt64(byte[] bytes,
int offset,
ByteOrder order,
BigInteger value)
Encode uint64 value into binary data.
|
static void |
writeUInt8(byte[] bytes,
int offset,
int value)
Encode uint8 value into binary data.
|
public static void writeBool(byte[] bytes,
int byteOffset,
int bitOffset,
boolean value)
bytes - The target binary data.byteOffset - The byte offset of the byte values in binary data.bitOffset - The bit offset of the byte values in binary data.value - The boolean value to be encoded.public static void writeBool(byte[] bytes,
int byteOffset,
int bitOffset,
BitOrder order,
boolean value)
bytes - The target 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.value - The boolean value to be encoded.public static void writeByte(byte[] bytes,
int offset,
byte value)
bytes - The target binary data.offset - The byte offset of the field in the binary data.value - The byte value to be encoded.public static void writeShort(byte[] bytes,
int offset,
short value)
bytes - The target binary data.offset - The byte offset of the field in the binary data.value - The short value to be encoded.public static void writeShort(byte[] bytes,
int offset,
ByteOrder order,
short value)
bytes - The target binary data.offset - The byte offset of the field in the binary data.order - The byte order of the field in the binary data.value - The short value to be encoded.public static void writeInt8(byte[] bytes,
int offset,
int value)
bytes - The target binary data.offset - The byte offset of the field in the binary data.value - The int8 value to be encoded.public static void writeInt16(byte[] bytes,
int offset,
int value)
bytes - The target binary data.offset - The byte offset of the field in the binary data.value - The int16 value to be encoded.public static void writeInt16(byte[] bytes,
int offset,
ByteOrder order,
int value)
bytes - The target binary data.offset - The byte offset of the field in the binary data.order - The byte order of the field in the binary data.value - The int16 value to be encoded.public static void writeInt32(byte[] bytes,
int offset,
int value)
bytes - The target binary data.offset - The byte offset of the field in the binary data.value - The int32 value to be encoded.public static void writeInt32(byte[] bytes,
int offset,
ByteOrder order,
int value)
bytes - The target binary data.offset - The byte offset of the field in the binary data.order - The byte order of the field in the binary data.value - The int32 value to be encoded.public static void writeInt64(byte[] bytes,
int offset,
long value)
bytes - The target binary data.offset - The byte offset of the field in the binary data.value - The int64 value to be encoded.public static void writeInt64(byte[] bytes,
int offset,
ByteOrder order,
long value)
bytes - The target binary data.offset - The byte offset of the field in the binary data.order - The byte order of the field in the binary data.value - The int64 value to be encoded.public static void writeUInt8(byte[] bytes,
int offset,
int value)
bytes - The target binary data.offset - The byte offset of the field in the binary data.value - The uint8 value to be encoded.public static void writeUInt16(byte[] bytes,
int offset,
int value)
bytes - The target binary data.offset - The byte offset of the field in the binary data.value - The uint16 value to be encoded.public static void writeUInt16(byte[] bytes,
int offset,
ByteOrder order,
int value)
bytes - The target binary data.offset - The byte offset of the field in the binary data.order - The byte order of the field in the binary data.value - The uint16 value to be encoded.public static void writeUInt32(byte[] bytes,
int offset,
long value)
bytes - The target binary data.offset - The byte offset of the field in the binary data.value - The uint32 value to be encoded.public static void writeUInt32(byte[] bytes,
int offset,
ByteOrder order,
long value)
bytes - The target binary data.offset - The byte offset of the field in the binary data.order - The byte order of the field in the binary data.value - The uint32 value to be encoded.public static void writeUInt64(byte[] bytes,
int offset,
BigInteger value)
bytes - The target binary data.offset - The byte offset of the field in the binary data.value - The uint64 value to be encoded.public static void writeUInt64(byte[] bytes,
int offset,
ByteOrder order,
BigInteger value)
bytes - The target binary data.offset - The byte offset of the field in the binary data.order - The byte order of the field in the binary data.value - The uint64 value to be encoded.public static void writeFloat(byte[] bytes,
int offset,
float value)
bytes - The target binary data.offset - The byte offset of the field in the binary data.value - The float value to be encoded.public static void writeFloat(byte[] bytes,
int offset,
ByteOrder order,
float value)
bytes - The target binary data.offset - The byte offset of the field in the binary data.order - The byte order of the field in the binary data.value - The float value to be encoded.public static void writeDouble(byte[] bytes,
int offset,
double value)
bytes - The target binary data.offset - The byte offset of the field in the binary data.value - The double value to be encoded.public static void writeDouble(byte[] bytes,
int offset,
ByteOrder order,
double value)
bytes - The target binary data.offset - The byte offset of the field in the binary data.order - The byte order of the field in the binary data.value - The double value to be encoded.public static void writeBytes(byte[] bytes,
int offset,
byte[] values)
bytes - The target binary data.offset - The byte offset of the field in the binary data.values - The byte array value to be encoded.Copyright © 2019–2025 indunet. All rights reserved.