DataReader class

Normal Data Reader

Inheritance

Constructors

DataReader(ByteBufferReader reader)

Properties

hashCode int
The hash code for this object.
read-onlyinherited
isEnd bool
Whether the read is down
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

destroy() → void
Destroy reader
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
readBytes({int length}) FutureOr<List<int>>
Read bytes from byte buffer reader
inherited
readInt({bool bigEndian = true}) FutureOr<int>
Read four-bytes int
readOneByte() FutureOr<int>
Read one byte from byte buffer reader
inherited
readShort({bool bigEndian = true}) FutureOr<int>
Read two-bytes int
readString({bool keepLineBreak = true}) FutureOr<String>
Read one line string
readUntil({List<List<int>> terminators, bool needRemoveTerminator = false, bool endTerminate = false}) FutureOr<List<int>>
Read until terminators match
inherited
releaseStream() Stream<List<int>>
Release byte buffer reader stream
inherited
toString() String
A string representation of this object.
inherited

Operators

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