BufReader<R extends AsyncRead> class final

Buffered reader with an internal byte buffer.

Implemented types
Available extensions

Constructors

BufReader(R inner, {int capacity = 64 * 1024})

Properties

buffer → Uint8List
no setteroverride
buffered → int
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
inner → R
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

chain(AsyncRead next) → AsyncRead

Available on AsyncRead, provided by the AsyncReadExt extension

Reads this source, then next.
consume(int n) → void
override
copyTo(AsyncWrite dst, {int bufferSize = 64 * 1024, int? limit}) → Future<int>

Available on AsyncRead, provided by the AsyncReadExt extension

Copies this source into dst, optionally up to limit bytes.
fillBuf() → Future<bool>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readExact(ReadBuf dst) → Future<void>

Available on AsyncRead, provided by the AsyncReadExt extension

Fills dst completely or throws UnexpectedEof.
readF32({Endian endian = Endian.big}) → Future<double>

Available on AsyncRead, provided by the AsyncReadExt extension

readF64({Endian endian = Endian.big}) → Future<double>

Available on AsyncRead, provided by the AsyncReadExt extension

readInto(ReadBuf dst) → Future<ReadResult>
override
readToEnd({int? limit}) → Future<Bytes>

Available on AsyncRead, provided by the AsyncReadExt extension

Reads until EOF, returning an immutable view over the accumulated data.
readU16({Endian endian = Endian.big}) → Future<int>

Available on AsyncRead, provided by the AsyncReadExt extension

readU32({Endian endian = Endian.big}) → Future<int>

Available on AsyncRead, provided by the AsyncReadExt extension

readU64({Endian endian = Endian.big}) → Future<Uint64>

Available on AsyncRead, provided by the AsyncReadExt extension

readU8() → Future<int>

Available on AsyncRead, provided by the AsyncReadExt extension

take(int limit) → AsyncRead

Available on AsyncRead, provided by the AsyncReadExt extension

Reads at most limit bytes from this source.
toString() → String
A string representation of this object.
inherited

Operators

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