CopyToAsync(Stream, TextWriter, int) Method
Copies a Stream to a System.IO.TextWriter using a buffer and leaves the stream open after copying.
Namespace
Statiq.Common
Containing Type
StreamExtensions

Syntax

public static Task CopyToAsync(this Stream stream, TextWriter writer, int bufferLength = 4096)

Parameters

Name Type Description
stream Stream The stream to copy from.
writer TextWriter The text writer to write stream content to.
bufferLength int The length of the buffer to populate for each block.

Return Value

Type Description
Task