BufferReader class

Class for reading data from a byte buffer.

Constructors

BufferReader(Uint8List buffer)
Constructs a BufferReader with the given byte buffer.

Properties

buffer Uint8List
final
hashCode int
The hash code for this object.
no setterinherited
readOffset int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

advance(Struct s, [int times = 1]) → void
Advances the read offset by the size of the given format multiplied by times.
bytesLeft() int
Returns the number of bytes left to read from the buffer.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
unpack(Struct s) → dynamic
Unpacks a single value from the buffer based on the given format.
unpackF(int size) Uint8List
Reads a fixed-size chunk of bytes from the buffer.
unpackNum(Struct s, List<int> shape) List
Reads numeric data from the buffer and constructs an n-dimensional array.
unpackStr() String
Unpacks a string from the buffer.

Operators

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