ReadAsync(byte, int, int, CancellationToken)

public override async Task<int> ReadAsync(byte buffer, int offset, int count, CancellationToken cancellationToken)
Returns:
Task<int>

Parameters

buffer byte
offset int
count int
cancellationToken CancellationToken

ReadAsync(Memory<byte>, CancellationToken)

public override async ValueTask<int> ReadAsync(Memory<byte> buffer, CancellationToken cancellationToken)
Returns:
ValueTask<int>

Parameters

buffer Memory<byte>
cancellationToken CancellationToken
In this article