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.
hashCode int
The hash code for this object.
no setterinherited
hasRemaining bool
Whether the buffer has data remaining to read.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited


getFloat32List(int length) Float32List
Reads the given number of Float32s from the buffer
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.
getUint16({Endian? endian}) int
Reads a Uint16 from the buffer.
getUint32({Endian? endian}) int
Reads a Uint32 from the buffer.
getUint8() int
Reads a Uint8 from the buffer.
getUint8List(int length) Uint8List
Reads the given number of Uint8s from the buffer.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toString() String
A string representation of this object.


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