Skip to content

TestMultiSegmentBufferWriter

class

Namespace: Orleans.Serialization.TestKit

Provides a buffer writer which stores committed bytes in multiple segments for serialization tests.
public class TestMultiSegmentBufferWriter : IOutputBuffer, IBufferWriter<byte>

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) Gets writable memory, capped by the configured maximum allocation size.
  • GetReadOnlySequence(int) Returns the written bytes as a read-only sequence.
  • GetSpan(int) Gets a writable span, capped by the configured maximum allocation size.
  • PeekAllBuffers Returns all committed buffers followed by the current uncommitted buffer.