BufferReader class
Buffer Reader
Constructors
- BufferReader(ByteData buffer, [int offset = 0])
- BufferReader from ByteData
- BufferReader.fromHex(String data, [dynamic offset = 0])
-
BufferReader from hex string
factory
- BufferReader.fromTypedData(TypedData buffer, [dynamic offset = 0])
-
BufferReader from TypedData
factory
Properties
Methods
-
getFloat32(
[Endian endian = Endian.little]) → double - Returns the floating point number represented by the four bytes, in IEEE 754 single-precision binary floating-point format (binary32).
-
getFloat64(
[Endian endian = Endian.little]) → double - Returns the floating point number represented by the eight bytes, in IEEE 754 double-precision binary floating-point format (binary64).
-
getInt16(
[Endian endian = Endian.little]) → int - Returns the (possibly negative) integer represented by the four bytes Increments the offset value by four The return value will be between -215 and 215 - 1, inclusive.
-
getInt32(
[Endian endian = Endian.little]) → int - Returns the (possibly negative) integer represented by the four bytes Increments the offset value by four The return value will be between -215 and 215 - 1, inclusive.
-
getInt64(
[Endian endian = Endian.little]) → int - Returns the positive integer represented by the eight bytes Increments the offset value by eight The return value will be between 0 and 264 - 1, inclusive.
-
getInt8(
) → int - Returns the (possibly negative) integer represented by the byte at current offset in buffer, in two's complement binary representation.
-
getSlice(
int n) → ByteData - Get next n bytes The return value will be ByteData(n)
-
getUInt(
[int byteLength = 0, Endian endian = Endian.little]) → int - Reads byteLength number of bytes from buf at the current offset and interprets the result as an unsigned, Endian integer supporting up to 48 bits of accuracy.
-
getUInt16(
[Endian endian = Endian.little]) → int - Returns the positive integer represented by the four bytes Increments the offset value by four The return value will be between 0 and 216 - 1, inclusive.
-
getUInt32(
[Endian endian = Endian.little]) → int - Returns the positive integer represented by the four bytes Increments the offset value by four The return value will be between 0 and 232 - 1, inclusive.
-
getUInt64(
[Endian endian = Endian.little]) → int - Returns the positive integer represented by the eight bytes Increments the offset value by eight The return value will be between 0 and 264 - 1, inclusive.
-
getUInt8(
) → int - Returns the positive integer represented by the byte. Increments the offset value by one. The return value will be between 0 and 255, inclusive.
-
getVarInt(
[Endian endian = Endian.little]) → int - Get next byte and return an int value based on the data length specified by this byte. The return value will between 0 and 264 - 1, inclusive.
-
getVarSlice(
[Endian endian = Endian.little]) → ByteData - Get next byte and return an ByteData value based on the data length specified by this byte. The return value will be ByteData.
-
getVector(
[Endian endian = Endian.little]) → List< ByteData> - Get vector list The return value will be List
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → dynamic - Set offset to zero
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited