ByteDataReader class Null safety

A class for parsing byte arrays.

Allows incremental building of the input byte stream using the add() method. The input arrays are concatenated as needed.

Constructors

ByteDataReader({Endian endian = Endian.big, bool copy = false})

Properties

endian Endian
final
hashCode int
The hash code for this object. [...]
read-only, inherited
offsetInBytes int
The offset in bytes (the current position).
read-only
remainingLength int
The number of bytes available to read.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

add(List<int> bytes, {bool? copy}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
read(int length, {bool? copy}) Uint8List
readAhead(int length) Future
Completes when minimum length amount of bytes are in the buffer.
readFloat32([Endian? endian]) double
readFloat64([Endian? endian]) double
readInt(int byteLength, [Endian? endian]) int
readInt8() int
readInt16([Endian? endian]) int
readInt32([Endian? endian]) int
readInt64([Endian? endian]) int
readUint(int byteLength, [Endian? endian]) int
readUint8() int
readUint16([Endian? endian]) int
readUint32([Endian? endian]) int
readUint64([Endian? endian]) int
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited