Edit

Share via


BufferWriterBox<TBufferWriter> Class

Definition

A IBufferWriter<T> implementation which boxes another buffer writer.

public class BufferWriterBox<TBufferWriter> : System.Buffers.IBufferWriter<byte> where TBufferWriter : struct
type BufferWriterBox<'BufferWriter (requires 'BufferWriter : struct)> = class
    interface IBufferWriter<byte>
Public Class BufferWriterBox(Of TBufferWriter)
Implements IBufferWriter(Of Byte)

Type Parameters

TBufferWriter
Inheritance
BufferWriterBox<TBufferWriter>
Implements

Constructors

BufferWriterBox<TBufferWriter>(TBufferWriter)

Properties

Value

Gets a reference to the underlying buffer writer.

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