ReadBuffer class

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

The byte order used is throughout.


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


data ByteData
The underlying data being read.
hasRemaining bool
Whether the buffer has data remaining to read.
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


getFloat64({Endian endian}) double
Reads a Float64 from the buffer.
getFloat64List(int length) Float64List
Reads the given number of Float64s from the buffer.
getInt32({Endian endian}) int
Reads an Int32 from the buffer.
getInt32List(int length) Int32List
Reads the given number of Int32s from the buffer.
getInt64({Endian endian}) 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({Endian endian}) int
Reads a Uint16 from the buffer.
getUint32({Endian endian}) int
Reads a Uint32 from the buffer.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
Returns a string representation of this object.


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