BufferedReader class

A buffered byte reader that accumulates data from a socket stream and allows reading exact byte counts asynchronously.

Constructors

BufferedReader()

Properties

hashCode int
The hash code for this object.
no setterinherited
isClosed bool
Whether this reader has been closed.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addData(List<int> data) → void
Appends incoming socket data to the internal buffer and notifies any pending readExactly calls.
close() → void
Marks the reader as closed, preventing further reads.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readExactly(int count) Future<Uint8List>
Reads exactly count bytes from the buffer, waiting for more data to arrive if the buffer does not yet contain enough.
toString() String
A string representation of this object.
inherited

Operators

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