Skip to content

TestBufferWriterStruct

struct

Namespace: Orleans.Serialization.TestKit

Provides a fixed-capacity buffer writer for serialization tests.
public struct TestBufferWriterStruct : 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 the unwritten portion of the fixed output buffer.
  • GetReadOnlySequence(int) Returns the written bytes as a read-only sequence.
  • GetSpan(int) Gets the unwritten portion of the fixed output buffer.