InputStreamBase class

Implementers

Constructors

InputStreamBase()

Properties

isEOS bool
Is the current position at the end of the stream?
read-only
length int
How many bytes are left in the stream.
read-only
position int
The current read position relative to the start of the buffer.
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

peekBytes(int count, [int offset = 0]) InputStream
Read count bytes from an offset of the current read position, without moving the read position.
readByte() int
Read a single byte.
readBytes(int count) InputStream
Read count bytes from the stream.
readString({int size, bool utf8}) String
Read a null-terminated string, or if len is provided, that number of bytes returned as a string.
readUint16() int
Read a 16-bit word from the stream.
readUint24() int
Read a 24-bit word from the stream.
readUint32() int
Read a 32-bit word from the stream.
readUint64() int
Read a 64-bit word form the stream.
reset() → void
Reset to the beginning of the stream.
rewind([int length = 1]) → void
Rewind the read head of the stream by the given number of bytes.
skip(int length) → void
Move the read position by count bytes.
toUint8List() Uint8List
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