ArcBufferWriter
class
Namespace: Orleans.Serialization.Buffers
A
System.Buffers.IBufferWriter implementation implemented using pooled arrays which is specialized for creating System.Buffers.ReadOnlySequence instances. [Orleans.Immutable]public sealed class ArcBufferWriter : IBufferWriter<byte>, IDisposableConstructors
ArcBufferWriterInitializes a new instance of theArcBufferWriterstruct.
Properties
Methods
AdvanceReader(int)Advances the reader by the specified number of bytes.AdvanceWriter(int)Advances the writer by the specified number of bytes.AppendPinned(ArcBuffer)Appends the pages referenced byinputdirectly to this writer by pinning them.ConsumeSlice(int)Consumes a slice of the provided length.DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.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).Peek(Span<byte>)Attempts to read the provided number of bytes from the buffer.Peek(Span<byte>)Copies the contents of this writer to a span.PeekSlice(int)Returns a pinned slice of the provided length without marking the data referred to it as consumed.ReplenishBuffers(List<ArraySegment<byte>>)Adds additional buffers to the destination list until the list has reached its capacity.ResetResets this instance, returning all memory.Truncate(int)Truncates this buffer to the specified unconsumed length.Write(ReadOnlySequence<byte>)Writes the provided sequence to this buffer.Write(ReadOnlySpan<byte>)Writes the provided value to this buffer.WriteAt(int, ReadOnlySpan<byte>)Overwrites bytes which have already been written to this buffer without changing the writer position.
Fields
MinimumPageSizeGets the minimum page size.
