public final class Decoder extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
(专用程序包) static ConcurrentHashMap<Class,Constructor> |
constructorMap |
(专用程序包) BitOrder |
defaultBitOrder |
(专用程序包) ByteOrder |
defaultByteOrder |
(专用程序包) LinkedHashMap<String,Object> |
fieldMap |
(专用程序包) ByteBufferInputStream |
inputStream |
| 构造器和说明 |
|---|
Decoder(byte[] bytes) |
| 限定符和类型 | 方法和说明 |
|---|---|
Decoder |
align(int alignment)
Align the current position to the specified byte boundary.
|
Decoder |
defaultBitOrder(BitOrder order)
Modify default bit order, FastProto uses lsb_0 by default if not specified.
|
Decoder |
defaultByteOrder(ByteOrder order)
Modify default byte order, FastProto uses little endian by default if not specified.
|
Map<String,Object> |
getMap()
Get decoded result.
|
<T> T |
mapTo(Class<T> clazz)
Map decoded result into an object.
|
private <T> T |
mapToArg(Constructor<T> constructor) |
private <T> T |
mapToNoArg(Constructor<T> constructor) |
Decoder |
readBool(String name)
Decode bool value from binary data.
|
Decoder |
readBool(String name,
BitOrder order)
Decode bool value from binary data.
|
Decoder |
readBool(String name,
BitOrder order,
java.util.function.Function<Boolean,?> formula)
Decode bool value from binary data.
|
Decoder |
readBool(String name,
java.util.function.Function<Boolean,?> formula)
Decode bool value from binary data.
|
Decoder |
readBool(String name,
int byteOffset,
int bitOffset)
Decode bool value from binary data.
|
Decoder |
readBool(String name,
int byteOffset,
int bitOffset,
BitOrder order)
Decode bool value from binary data.
|
Decoder |
readBool(String name,
int byteOffset,
int bitOffset,
BitOrder order,
java.util.function.Function<Boolean,?> formula)
Decode bool value from binary data.
|
Decoder |
readBool(String name,
int byteOffset,
int bitOffset,
java.util.function.Function<Boolean,?> formula)
Decode bool value from binary data.
|
Decoder |
readByte(String name)
Decode byte value from binary data.
|
Decoder |
readByte(String name,
java.util.function.Function<Byte,?> formula)
Decode byte value from binary data.
|
Decoder |
readByte(String name,
int offset)
Decode byte value from binary data.
|
Decoder |
readByte(String name,
int offset,
java.util.function.Function<Byte,?> formula)
Decode byte value from binary data.
|
Decoder |
readBytes(String name,
int length)
Decode string value from binary data.
|
Decoder |
readBytes(String name,
int length,
java.util.function.Function<byte[],?> formula)
Decode byte array value from binary data.
|
Decoder |
readBytes(String name,
int offset,
int length)
Decode byte array value from binary data.
|
Decoder |
readBytes(String name,
int offset,
int length,
java.util.function.Function<byte[],?> formula)
Decode byte array value from binary data.
|
Decoder |
readDouble(String name)
Decode double value from binary data.
|
Decoder |
readDouble(String name,
ByteOrder order)
Decode double value from binary data.
|
Decoder |
readDouble(String name,
ByteOrder order,
java.util.function.Function<Double,?> formula)
Decode double value from binary data.
|
Decoder |
readDouble(String name,
java.util.function.Function<Double,?> formula)
Decode double value from binary data.
|
Decoder |
readDouble(String name,
int offset)
Decode double value from binary data.
|
Decoder |
readDouble(String name,
int offset,
ByteOrder order)
Decode double value from binary data.
|
Decoder |
readDouble(String name,
int offset,
ByteOrder order,
java.util.function.Function<Double,?> formula)
Decode double value from binary data.
|
Decoder |
readDouble(String name,
int offset,
java.util.function.Function<Double,?> formula)
Decode double value from binary data.
|
Decoder |
readFloat(String name)
Decode float value from binary data.
|
Decoder |
readFloat(String name,
ByteOrder order)
Decode float value from binary data.
|
Decoder |
readFloat(String name,
ByteOrder order,
java.util.function.Function<Float,?> formula)
Decode float value from binary data.
|
Decoder |
readFloat(String name,
java.util.function.Function<Float,?> formula)
Decode float value from binary data.
|
Decoder |
readFloat(String name,
int offset)
Decode float value from binary data.
|
Decoder |
readFloat(String name,
int offset,
ByteOrder order)
Decode float value from binary data.
|
Decoder |
readFloat(String name,
int offset,
ByteOrder order,
java.util.function.Function<Float,?> formula)
Decode float value from binary data.
|
Decoder |
readFloat(String name,
int offset,
java.util.function.Function<Float,?> formula)
Decode float value from binary data.
|
Decoder |
readInt16(String name)
Decode int16 value from binary data.
|
Decoder |
readInt16(String name,
ByteOrder order)
Decode int16 value from binary data.
|
Decoder |
readInt16(String name,
ByteOrder order,
java.util.function.Function<Integer,?> formula)
Decode int16 value from binary data.
|
Decoder |
readInt16(String name,
java.util.function.Function<Integer,?> formula)
Decode int16 value from binary data.
|
Decoder |
readInt16(String name,
int offset)
Decode int16 value from binary data.
|
Decoder |
readInt16(String name,
int offset,
ByteOrder order)
Decode int16 value from binary data.
|
Decoder |
readInt16(String name,
int offset,
ByteOrder order,
java.util.function.Function<Integer,?> formula)
Decode int16 value from binary data.
|
Decoder |
readInt16(String name,
int offset,
java.util.function.Function<Integer,?> formula)
Decode int16 value from binary data.
|
Decoder |
readInt32(String name)
Decode int32 value from binary data.
|
Decoder |
readInt32(String name,
ByteOrder order)
Decode int32 value from binary data.
|
Decoder |
readInt32(String name,
ByteOrder order,
java.util.function.Function<Integer,?> formula)
Decode int32 value from binary data.
|
Decoder |
readInt32(String name,
java.util.function.Function<Integer,?> formula) |
Decoder |
readInt32(String name,
int offset)
Decode int32 value from binary data.
|
Decoder |
readInt32(String name,
int offset,
ByteOrder order)
Decode int32 value from binary data.
|
Decoder |
readInt32(String name,
int offset,
ByteOrder order,
java.util.function.Function<Integer,?> formula)
Decode int32 value from binary data.
|
Decoder |
readInt32(String name,
int offset,
java.util.function.Function<Integer,?> formula)
Decode int32 value from binary data.
|
Decoder |
readInt64(String name)
Decode int64 value from binary data.
|
Decoder |
readInt64(String name,
ByteOrder order)
Decode int64 value from binary data.
|
Decoder |
readInt64(String name,
ByteOrder order,
java.util.function.Function<Long,?> formula)
Decode int64 value from binary data.
|
Decoder |
readInt64(String name,
java.util.function.Function<Long,?> formula)
Decode int64 value from binary data.
|
Decoder |
readInt64(String name,
int offset)
Decode int64 value from binary data.
|
Decoder |
readInt64(String name,
int offset,
ByteOrder order)
Decode int64 value from binary data.
|
Decoder |
readInt64(String name,
int offset,
ByteOrder order,
java.util.function.Function<Long,?> formula)
Decode int64 value from binary data.
|
Decoder |
readInt64(String name,
int offset,
java.util.function.Function<Long,?> formula)
Decode int64 value from binary data.
|
Decoder |
readInt8(String name)
Decode int8 value from binary data.
|
Decoder |
readInt8(String name,
java.util.function.Function<Integer,?> formula)
Decode int8 value from binary data.
|
Decoder |
readInt8(String name,
int offset)
Decode int8 value from binary data.
|
Decoder |
readInt8(String name,
int offset,
java.util.function.Function<Integer,?> formula)
Decode int8 value from binary data.
|
Decoder |
readShort(String name)
Decode short value from binary data.
|
Decoder |
readShort(String name,
ByteOrder order)
Decode short value from binary data.
|
Decoder |
readShort(String name,
ByteOrder order,
java.util.function.Function<Short,?> formula)
Decode short value from binary data.
|
Decoder |
readShort(String name,
java.util.function.Function<Short,?> formula) |
Decoder |
readShort(String name,
int offset)
Decode short value from binary data.
|
Decoder |
readShort(String name,
int offset,
ByteOrder order)
Decode short value from binary data.
|
Decoder |
readShort(String name,
int offset,
ByteOrder order,
java.util.function.Function<Short,?> formula)
Decode short value from binary data.
|
Decoder |
readShort(String name,
int offset,
java.util.function.Function<Short,?> formula)
Decode short value from binary data.
|
Decoder |
readUInt16(String name)
Decode uint16 value from binary data.
|
Decoder |
readUInt16(String name,
ByteOrder order)
Decode uint16 value from binary data.
|
Decoder |
readUInt16(String name,
ByteOrder order,
java.util.function.Function<Integer,?> formula)
Decode uint16 value from binary data.
|
Decoder |
readUInt16(String name,
java.util.function.Function<Integer,?> formula)
Decode uint16 value from binary data.
|
Decoder |
readUInt16(String name,
int offset)
Decode uint16 value from binary data.
|
Decoder |
readUInt16(String name,
int offset,
ByteOrder order)
Decode uint16 value from binary data.
|
Decoder |
readUInt16(String name,
int offset,
ByteOrder order,
java.util.function.Function<Integer,?> formula)
Decode uint16 value from binary data.
|
Decoder |
readUInt16(String name,
int offset,
java.util.function.Function<Integer,?> formula)
Decode uint16 value from binary data.
|
Decoder |
readUInt32(String name)
Decode uint32 value from binary data.
|
Decoder |
readUInt32(String name,
ByteOrder order)
Decode uint32 value from binary data.
|
Decoder |
readUInt32(String name,
ByteOrder order,
java.util.function.Function<Long,?> formula)
Decode uint32 value from binary data.
|
Decoder |
readUInt32(String name,
java.util.function.Function<Long,?> formula)
Decode uint32 value from binary data.
|
Decoder |
readUInt32(String name,
int offset)
Decode uint32 value from binary data.
|
Decoder |
readUInt32(String name,
int offset,
ByteOrder order)
Decode uint32 value from binary data.
|
Decoder |
readUInt32(String name,
int offset,
ByteOrder order,
java.util.function.Function<Long,?> formula)
Decode uint32 value from binary data.
|
Decoder |
readUInt32(String name,
int offset,
java.util.function.Function<Long,?> formula)
Decode uint32 value from binary data.
|
Decoder |
readUInt64(String name)
Decode uint64 value from binary data.
|
Decoder |
readUInt64(String name,
ByteOrder order)
Decode uint64 value from binary data.
|
Decoder |
readUInt64(String name,
ByteOrder order,
java.util.function.Function<BigInteger,?> formula)
Decode uint64 value from binary data.
|
Decoder |
readUInt64(String name,
java.util.function.Function<BigInteger,?> formula)
Decode uint64 value from binary data.
|
Decoder |
readUInt64(String name,
int offset)
Decode uint64 value from binary data.
|
Decoder |
readUInt64(String name,
int offset,
ByteOrder order)
Decode uint64 value from binary data.
|
Decoder |
readUInt64(String name,
int offset,
ByteOrder order,
java.util.function.Function<BigInteger,?> formula)
Decode uint64 value from binary data.
|
Decoder |
readUInt64(String name,
int offset,
java.util.function.Function<BigInteger,?> formula)
Decode uint64 value from binary data.
|
Decoder |
readUInt8(String name)
Decode uint8 value from binary data.
|
Decoder |
readUInt8(String name,
java.util.function.Function<Integer,?> formula)
Decode uint8 value from binary data.
|
Decoder |
readUInt8(String name,
int offset)
Decode uint8 value from binary data.
|
Decoder |
readUInt8(String name,
int offset,
java.util.function.Function<Integer,?> formula)
Decode uint8 value from binary data.
|
Decoder |
skip()
Ignore current position and move to next.
|
Decoder |
skip(int num)
Ignore following num positions and move to next.
|
static ConcurrentHashMap<Class,Constructor> constructorMap
ByteBufferInputStream inputStream
LinkedHashMap<String,Object> fieldMap
ByteOrder defaultByteOrder
BitOrder defaultBitOrder
public Decoder defaultByteOrder(ByteOrder order)
order - Byte orderpublic Decoder defaultBitOrder(BitOrder order)
order - Bit orderpublic Decoder readBool(String name)
name - The name of the field in the binary data.public Decoder readBool(String name, java.util.function.Function<Boolean,?> formula)
name - The name of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readBool(String name, BitOrder order)
name - The name of the field in the binary data.order - The bit order of the field in the binary datapublic Decoder readBool(String name, BitOrder order, java.util.function.Function<Boolean,?> formula)
name - The name of the field in the binary data.order - The bit order of the field in the binary dataformula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readBool(String name, int byteOffset, int bitOffset)
name - The name of the field in 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 Decoder readBool(String name, int byteOffset, int bitOffset, java.util.function.Function<Boolean,?> formula)
name - The name of the field in 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.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readBool(String name, int byteOffset, int bitOffset, BitOrder order)
name - The name of the field in 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 Decoder readBool(String name, int byteOffset, int bitOffset, BitOrder order, java.util.function.Function<Boolean,?> formula)
name - The name of the field in 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.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readByte(String name)
name - The name of the field in the binary data.public Decoder readByte(String name, java.util.function.Function<Byte,?> formula)
name - The name of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readByte(String name, int offset)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.public Decoder readByte(String name, int offset, java.util.function.Function<Byte,?> formula)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readShort(String name)
name - The name of the field in the binary data.public Decoder readShort(String name, ByteOrder order)
name - The name of the field in the binary data.order - The byte order of the field in the binary data.public Decoder readShort(String name, java.util.function.Function<Short,?> formula)
public Decoder readShort(String name, ByteOrder order, java.util.function.Function<Short,?> formula)
name - The name of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readShort(String name, int offset)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.public Decoder readShort(String name, int offset, java.util.function.Function<Short,?> formula)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readShort(String name, int offset, ByteOrder order)
name - The name of the field in 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 Decoder readShort(String name, int offset, ByteOrder order, java.util.function.Function<Short,?> formula)
name - The name of the field in 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.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readInt8(String name)
name - The name of the field in the binary data.public Decoder readInt8(String name, java.util.function.Function<Integer,?> formula)
name - The name of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readInt8(String name, int offset)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.public Decoder readInt8(String name, int offset, java.util.function.Function<Integer,?> formula)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readInt16(String name)
name - The name of the field in the binary data.public Decoder readInt16(String name, ByteOrder order)
name - The name of the field in the binary data.order - The byte order of the field in the binary data.public Decoder readInt16(String name, java.util.function.Function<Integer,?> formula)
name - The name of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readInt16(String name, ByteOrder order, java.util.function.Function<Integer,?> formula)
name - The name of the field in the binary data.order - The byte order of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readInt16(String name, int offset)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.public Decoder readInt16(String name, int offset, java.util.function.Function<Integer,?> formula)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readInt16(String name, int offset, ByteOrder order)
name - The name of the field in 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 Decoder readInt16(String name, int offset, ByteOrder order, java.util.function.Function<Integer,?> formula)
name - The name of the field in 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.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readInt32(String name)
name - The name of the field in the binary data.public Decoder readInt32(String name, ByteOrder order)
name - The name of the field in the binary data.order - The byte order of the field in the binary data.public Decoder readInt32(String name, java.util.function.Function<Integer,?> formula)
public Decoder readInt32(String name, ByteOrder order, java.util.function.Function<Integer,?> formula)
name - The name of the field in the binary data.order - The byte order of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readInt32(String name, int offset)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.public Decoder readInt32(String name, int offset, java.util.function.Function<Integer,?> formula)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readInt32(String name, int offset, ByteOrder order)
name - The name of the field in 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 Decoder readInt32(String name, int offset, ByteOrder order, java.util.function.Function<Integer,?> formula)
name - The name of the field in 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.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readInt64(String name)
name - The name of the field in the binary data.public Decoder readInt64(String name, ByteOrder order)
name - The name of the field in the binary data.order - The byte order of the field in the binary data.public Decoder readInt64(String name, java.util.function.Function<Long,?> formula)
name - The name of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readInt64(String name, ByteOrder order, java.util.function.Function<Long,?> formula)
name - The name of the field in the binary data.order - The byte order of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readInt64(String name, int offset)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.public Decoder readInt64(String name, int offset, java.util.function.Function<Long,?> formula)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readInt64(String name, int offset, ByteOrder order)
name - The name of the field in 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 Decoder readInt64(String name, int offset, ByteOrder order, java.util.function.Function<Long,?> formula)
name - The name of the field in 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.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readUInt8(String name)
name - The name of the field in the binary data.public Decoder readUInt8(String name, java.util.function.Function<Integer,?> formula)
name - The name of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readUInt8(String name, int offset)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.public Decoder readUInt8(String name, int offset, java.util.function.Function<Integer,?> formula)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readUInt16(String name)
name - The name of the field in the binary data.public Decoder readUInt16(String name, ByteOrder order)
name - The name of the field in the binary data.order - The byte order of the field in the binary data.public Decoder readUInt16(String name, java.util.function.Function<Integer,?> formula)
name - The name of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readUInt16(String name, ByteOrder order, java.util.function.Function<Integer,?> formula)
name - The name of the field in the binary data.order - The byte order of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readUInt16(String name, int offset)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.public Decoder readUInt16(String name, int offset, java.util.function.Function<Integer,?> formula)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readUInt16(String name, int offset, ByteOrder order)
name - The name of the field in 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 Decoder readUInt16(String name, int offset, ByteOrder order, java.util.function.Function<Integer,?> formula)
name - The name of the field in 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.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readUInt32(String name)
name - The name of the field in the binary data.public Decoder readUInt32(String name, ByteOrder order)
name - The name of the field in the binary data.order - The byte order of the field in the binary data.public Decoder readUInt32(String name, java.util.function.Function<Long,?> formula)
name - The name of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readUInt32(String name, ByteOrder order, java.util.function.Function<Long,?> formula)
name - The name of the field in the binary data.order - The byte order of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readUInt32(String name, int offset)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.public Decoder readUInt32(String name, int offset, java.util.function.Function<Long,?> formula)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readUInt32(String name, int offset, ByteOrder order)
name - The name of the field in 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 Decoder readUInt32(String name, int offset, ByteOrder order, java.util.function.Function<Long,?> formula)
name - The name of the field in 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.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readUInt64(String name)
name - The name of the field in the binary data.public Decoder readUInt64(String name, ByteOrder order)
name - The name of the field in the binary data.order - The byte order of the field in the binary data.public Decoder readUInt64(String name, java.util.function.Function<BigInteger,?> formula)
name - The name of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readUInt64(String name, ByteOrder order, java.util.function.Function<BigInteger,?> formula)
name - The name of the field in the binary data.order - The byte order of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readUInt64(String name, int offset)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.public Decoder readUInt64(String name, int offset, java.util.function.Function<BigInteger,?> formula)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readUInt64(String name, int offset, ByteOrder order)
name - The name of the field in 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 Decoder readUInt64(String name, int offset, ByteOrder order, java.util.function.Function<BigInteger,?> formula)
name - The name of the field in 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.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readFloat(String name)
name - The name of the field in the binary data.public Decoder readFloat(String name, ByteOrder order)
name - The name of the field in the binary data.order - The byte order of the field in the binary data.public Decoder readFloat(String name, java.util.function.Function<Float,?> formula)
name - The name of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readFloat(String name, ByteOrder order, java.util.function.Function<Float,?> formula)
name - The name of the field in the binary data.order - The byte order of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readFloat(String name, int offset)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.public Decoder readFloat(String name, int offset, java.util.function.Function<Float,?> formula)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readFloat(String name, int offset, ByteOrder order)
name - The name of the field in 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 Decoder readFloat(String name, int offset, ByteOrder order, java.util.function.Function<Float,?> formula)
name - The name of the field in 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.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readDouble(String name)
name - The name of the field in the binary data.public Decoder readDouble(String name, ByteOrder order)
name - The name of the field in the binary data.order - The byte order of the field in the binary data.public Decoder readDouble(String name, java.util.function.Function<Double,?> formula)
name - The name of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readDouble(String name, ByteOrder order, java.util.function.Function<Double,?> formula)
name - The name of the field in the binary data.order - The byte order of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readDouble(String name, int offset)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.public Decoder readDouble(String name, int offset, java.util.function.Function<Double,?> formula)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readDouble(String name, int offset, ByteOrder order)
name - The name of the field in 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 Decoder readDouble(String name, int offset, ByteOrder order, java.util.function.Function<Double,?> formula)
name - The name of the field in 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.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readBytes(String name, int length)
name - The name of the field in the binary data.length - The length of the field in the binary data.public Decoder readBytes(String name, int length, java.util.function.Function<byte[],?> formula)
name - The name of the field in the binary data.length - The length of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder readBytes(String name, int offset, int length)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.length - The length of the field in the binary data.public Decoder readBytes(String name, int offset, int length, java.util.function.Function<byte[],?> formula)
name - The name of the field in the binary data.offset - The byte offset of the field in the binary data.length - The length of the field in the binary data.formula - Decoded value will be substituted into this formula, and the result will be stored.public Decoder align(int alignment)
alignment - The byte boundary to align to.public Decoder skip()
public Decoder skip(int num)
num - The length to skip.public <T> T mapTo(Class<T> clazz)
T - The type of the object.private <T> T mapToNoArg(Constructor<T> constructor)
private <T> T mapToArg(Constructor<T> constructor)
Copyright © 2019–2025 indunet. All rights reserved.