ReadBuffer class

Read-only buffer for reading sequentially from a ByteData instance.

The byte order used is Endian.host throughout.

Constructors

ReadBuffer(ByteData data)
Creates a ReadBuffer for reading from the specified data.

Properties

data ByteData
The underlying data being read.
final
hasRemaining bool
Whether the buffer has data remaining to read.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getFloat64() double
Reads a Float64 from the buffer.
getFloat64List(int length) Float64List
Reads the given number of Float64s from the buffer.
getInt32() int
Reads an Int32 from the buffer.
getInt32List(int length) Int32List
Reads the given number of Int32s from the buffer.
getInt64() int
Reads an Int64 from the buffer.
getInt64List(int length) Int64List
Reads the given number of Int64s from the buffer.
getUint8() int
Reads a Uint8 from the buffer.
getUint8List(int length) Uint8List
Reads the given number of Uint8s from the buffer.
getUint16() int
Reads a Uint16 from the buffer.
getUint32() int
Reads a Uint32 from the buffer.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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