Skip to content

ArcBuffer

struct

Namespace: Orleans.Serialization.Buffers

Represents a slice of a ArcBufferWriter.
public struct ArcBuffer : IDisposable

Remarks

Initializes a new instance of the ArcBuffer type.

Constructors

Properties

  • ArraySegments Returns an enumerator which can be used to enumerate the array segments referenced by this instance.
  • MemorySegments Returns an enumerator which can be used to enumerate the memory segments referenced by this instance.
  • SpanSegments Returns an enumerator which can be used to enumerate the span segments referenced by this instance.

Methods

  • AsReadOnlySequence Returns a new System.Buffers.ReadOnlySequence which must not be accessed after disposing this instance.
  • CopyTo(Span<byte>)Copies the contents of this writer to a span.
  • CopyTo(ArcBufferWriter)Copies the contents of this writer to a pooled buffer.
  • CopyTo(TBufferWriter)Copies the contents of this writer to a buffer writer.
  • DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
  • GetEnumerator Returns an enumerator which can be used to enumerate the span segments referenced by this instance.
  • Pin Pins this slice, preventing the referenced pages from being returned to the pool.
  • Slice(int)
  • Slice(int, int)
  • ToArray Returns the data which has been written as an array.
  • Unpin Unpins this slice, allowing the referenced pages to be returned to the pool.
  • UnsafeSlice(int, int)

Fields

  • First Gets the first page.
  • Length Gets the length of this sequence.
  • Offset Gets the offset into the first page at which this slice begins.