Edit

Share via


PoolingStreamBufferWriter Struct

Definition

An implementation of IBufferWriter<T> for writing to a Stream, using pooled arrays as an intermediate buffer.

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

Methods

Advance(Int32)

Notifies the IBufferWriter<T> that count data items were written to the output Span<T> or Memory<T>.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

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