Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: Task<long> ReadAllBytesGetLengthAsync(this Stream, CancellationToken?)

Declaration

public static Task<long> ReadAllBytesGetLengthAsync(
    this Stream stream,
    CancellationToken? token = null
)

Summary

Reads all bytes until the end of stream and returns the number of bytes thus read without allocating too much memory.