Edit

Share via


SpanBufferWriter Struct

Definition

A special-purpose IBufferWriter<T> implementation for supporting Span<T> in Writer<TBufferWriter>.

public struct SpanBufferWriter : System.Buffers.IBufferWriter<byte>
type SpanBufferWriter = struct
    interface IBufferWriter<byte>
Public Structure SpanBufferWriter
Implements IBufferWriter(Of Byte)
Inheritance
SpanBufferWriter
Implements

Properties

BytesWritten

Gets the number of bytes written.

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).

Applies to