MemoryStreamBufferWriter
struct
Namespace: Orleans.Serialization.Buffers.Adaptors
An implementation of
System.Buffers.IBufferWriter which writes to a System.IO.MemoryStream. public readonly struct MemoryStreamBufferWriter : IBufferWriter<byte>Constructors
MemoryStreamBufferWriter(MemoryStream)Initializes a new instance of theMemoryStreamBufferWriterstruct.
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).
