Skip to content

PoolingStreamBufferWriter

struct

Namespace: Orleans.Serialization.Buffers.Adaptors

An implementation of System.Buffers.IBufferWriter for writing to a System.IO.Stream, using pooled arrays as an intermediate buffer.
public struct PoolingStreamBufferWriter : IBufferWriter<byte>, IDisposable

Methods

  • Advance(int)Notifies the System.Buffers.IBufferWriter that count data items were written to the output System.Span or System.Memory.
  • DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
  • GetMemory(int)Returns a System.Memory to write to that is at least the requested size (specified by sizeHint).
  • GetSpan(int)Returns a System.Span to write to that is at least the requested size (specified by sizeHint).