TestBufferWriterStruct
struct
Namespace: Orleans.Serialization.TestKit
Provides a fixed-capacity buffer writer for serialization tests.
public struct TestBufferWriterStruct : IOutputBuffer, IBufferWriter<byte>Constructors
TestBufferWriterStruct(byte[])Initializes a new instance of theTestBufferWriterStructstruct.
Methods
Advance(int)Notifies theSystem.Buffers.IBufferWriterthatcountdata items were written to the outputSystem.SpanorSystem.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.
