Edit

Share via


MemoryBufferWriter Struct

Definition

A IBufferWriter<T> implementation for Memory<T>

public struct MemoryBufferWriter : System.Buffers.IBufferWriter<byte>
type MemoryBufferWriter = struct
    interface IBufferWriter<byte>
Public Structure MemoryBufferWriter
Implements IBufferWriter(Of Byte)
Inheritance
MemoryBufferWriter
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