Table of Contents

Class BufferWriterExtensions

Namespace
Nerdbank.Streams
Assembly
Nerdbank.Streams.dll

Extension methods for the IBufferWriter<T> interface.

public static class BufferWriterExtensions
Inheritance
BufferWriterExtensions
Inherited Members

Methods

Write<T>(IBufferWriter<T>, ReadOnlySequence<T>)

Copies the content of a ReadOnlySequence<T> into an IBufferWriter<T>.

public static void Write<T>(this IBufferWriter<T> writer, ReadOnlySequence<T> sequence)

Parameters

writer IBufferWriter<T>

The IBufferWriter<T> to write to.

sequence ReadOnlySequence<T>

The sequence to read from.

Type Parameters

T

The type of element to copy.