MultiBufferMemoryStream.FastCopyToAsync Method

Definition

Reads the bytes from the current stream and writes them to another stream. This method writes directly to the destination stream, rather than copying the data into a temporary buffer.

public System.Threading.Tasks.Task FastCopyToAsync (System.IO.Stream destination, DateTime? expiryTime, System.Threading.CancellationToken token);
member this.FastCopyToAsync : System.IO.Stream * Nullable<DateTime> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function FastCopyToAsync (destination As Stream, expiryTime As Nullable(Of DateTime), token As CancellationToken) As Task

Parameters

destination
Stream

The stream to which the contents of the current stream will be copied.

expiryTime
Nullable<DateTime>

A DateTime indicating the expiry time.

Returns

Applies to