Skip to content

ArcBufferWriterWrapper

struct

Namespace: Orleans.Serialization.Buffers

Wraps an ArcBufferWriter for use as a serialization writer target.
public readonly struct ArcBufferWriterWrapper : IBufferWriter<byte>

Remarks

Disposing a Orleans.Serialization.Buffers.Writer over this wrapper does not dispose the underlying ArcBufferWriter.

Constructors

Methods

  • Advance(int)Notifies the System.Buffers.IBufferWriter that count data items were written to the output System.Span or System.Memory.
  • 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).