Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IBufferWriter<T> Interface

Definition

Namespace:
System.Buffers
Assemblies:
netstandard.dll, System.Memory.dll
Assembly:
System.Memory.dll
Assembly:
netstandard.dll
Source:
IBufferWriter.cs
Source:
IBufferWriter.cs
Source:
SequenceMarshal.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

Name Description
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

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

Writes the contents of value to writer.

Applies to


Feedback

Was this page helpful?