ArrayStreamBufferWriter
struct
Namespace: Orleans.Serialization.Buffers.Adaptors
An implementation of
System.Buffers.IBufferWriter which writes to a System.IO.Stream, using an array as an intermediate buffer. public struct ArrayStreamBufferWriter : IBufferWriter<byte>Constructors
ArrayStreamBufferWriter(Stream, int)Initializes a new instance of theArrayStreamBufferWriterstruct.
Methods
Advance(int)Notifies theSystem.Buffers.IBufferWriterthatcountdata items were written to the outputSystem.SpanorSystem.Memory.GetMemory(int)Returns aSystem.Memoryto write to that is at least the requested size (specified bysizeHint).GetSpan(int)Returns aSystem.Spanto write to that is at least the requested size (specified bysizeHint).
Fields
DefaultInitialBufferSizeThe default initial size of the intermediate buffer, in bytes.
