Skip to content

BufferWriterBox<TBufferWriter>

class

Namespace: Orleans.Serialization.Buffers.Adaptors

A System.Buffers.IBufferWriter implementation which boxes another buffer writer.
public class BufferWriterBox<TBufferWriter> : IBufferWriter<byte>
where TBufferWriter : struct, System.Buffers.IBufferWriter<byte>

Constructors

Properties

  • Value Gets a reference to the underlying buffer writer.

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).