Skip to content

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>, IDisposable

Remarks

As with System.Buffers.ArrayPool.Shared, backing buffers can contain data from earlier uses and are returned without clearing. Callers must initialize every byte before advancing the writer and read only the written region of a buffer. Fixed-size pinned pages are reused and evicted every 10 seconds according to recent pool activity. Larger arrays return to System.Buffers.ArrayPool.Shared when their last owner releases them.

Constructors

Properties

  • Length Gets the number of unconsumed bytes (alias for UnconsumedLength).
  • Reader Gets a reader over the unconsumed bytes.
  • UnconsumedLength Gets the number of unconsumed bytes.

Methods

Fields