TruncatedStream.WriteAsync method (1 of 2)

Asynchronously writes a sequence of bytes to the current stream, advances the current position within this stream by the number of bytes written, and monitors cancellation requests.

public override ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, 
    CancellationToken cancellationToken)

See Also


TruncatedStream.WriteAsync method (2 of 2)

Asynchronously writes a sequence of bytes to the current stream, advances the current position within this stream by the number of bytes written, and monitors cancellation requests.

public override Task WriteAsync(byte[] buffer, int offset, int count, 
    CancellationToken cancellationToken)

See Also