BinaryReader class

Constructors

BinaryReader(ByteData buffer, {Endian endian = Endian.little})
BinaryReader.fromList(Uint8List list, {Endian endian = Endian.little})

Properties

buffer ByteData
final
endian Endian
final
hashCode int
The hash code for this object.
no setterinherited
isEOF bool
no setter
position int
no setter
readIndex int
TODO: remove setter for readIndex when we remove _readVarInt from core_double_type.dart
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(int length, [bool allocNew = true]) Uint8List
readFloat32() double
readFloat64() double
readInt16() int
readInt32() int
readInt64() int
readInt8() int
readString({bool explicitLength = true}) String
Read a string encoded into the stream. Strings are encoded with a varuint integer length written first followed by length number of utf8 encoded bytes.
readUint16() int
readUint32() int
readUint64() int
readUint8() int
readVarUint() int
Read a variable length unsigned integer from the buffer encoded as an LEB128 unsigned integer.
toString() String
A string representation of this object.
inherited

Operators

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