Bewerken

Delen via


IBufferWriter<T> Interface

Definition

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

generic <typename T>
public interface class IBufferWriter
public interface IBufferWriter<T>
type IBufferWriter<'T> = interface
Public Interface IBufferWriter(Of 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