AsyncReadExt extension
Read-side utility methods.
- on
Methods
-
chain(
AsyncRead next) → AsyncRead -
Available on AsyncRead, provided by the AsyncReadExt extension
Reads this source, thennext. -
copyTo(
AsyncWrite dst, {int bufferSize = 64 * 1024, int? limit}) → Future< int> -
Available on AsyncRead, provided by the AsyncReadExt extension
Copies this source intodst, optionally up tolimitbytes. -
readExact(
ReadBuf dst) → Future< void> -
Available on AsyncRead, provided by the AsyncReadExt extension
Fillsdstcompletely 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
-
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 mostlimitbytes from this source.