Läs på engelska Redigera

Dela via


IBufferWriter<T> Interface

Definition

Represents an output sink into which T data can be written.

C#
public interface IBufferWriter<T>

Type Parameters

T

The type of the items in the IBufferWriter<T>.

Derived

Methods

Advance(Int32)

Notifies the IBufferWriter<T> that count data items were written to the output Span<T> or Memory<T>.

GetMemory(Int32)

Returns a Memory<T> to write to that is at least the requested size (specified by sizeHint).

GetSpan(Int32)

Returns a Span<T> to write to that is at least the requested size (specified by sizeHint).

Extension Methods

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

Writes the contents of value to writer.

Applies to

Produkt Versioner
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1