Skip to content

ArcBufferPage

class

Namespace: Orleans.Serialization.Buffers

A page of data.
public sealed class ArcBufferPage

Properties

  • Array Gets the array underpinning the page.
  • IsMinimumSize Gets a value indicating whether this page is equal to the minimum page size.
  • IsValid Gets a value indicating whether this page is valid.
  • Length Gets the number of bytes which have been written to the page.
  • Next Gets the next node.
  • ReadableArraySegment An System.ArraySegment containing the readable bytes from this page.
  • ReadableMemory A System.ReadOnlyMemory containing the readable bytes from this page.
  • ReadableSpan A System.ReadOnlySpan containing the readable bytes from this page.
  • Version Gets the current page version.
  • WritableArraySegment An System.ArraySegment containing the writable bytes from this page.
  • WritableMemory Gets the writable memory in the page.
  • WritableSpan Gets a span representing the writable memory in the page.
  • WriteCapacity Gets the number of bytes in the page which are available for writing.

Methods

  • Advance(int) Increases the number of bytes written to the page by the provided amount.
  • AsArraySegment(int, int) Returns an array segment pointing to the underlying array, starting from the provided offset, and having the provided length.
  • AsMemory(int) Creates a new memory region over the portion of the target page beginning at a specified position.
  • AsMemory(int, int) Creates a new memory region over the portion of the target page beginning at a specified position with a specified length.
  • AsSpan(int) Gets a span pointing to the underlying array, starting from the provided offset.
  • AsSpan(int, int) Gets a span pointing to the underlying array, starting from the provided offset.
  • CheckValidity(int) Throws if the provided token does not match the page's ArcBufferPage.
  • Pin(int) Pins this page to prevent it from being returned to the page pool.
  • ResizeLargeSegment(int)
  • SetNext(ArcBufferPage, int) Sets the next page in the sequence.
  • Unpin(int) Unpins this page, allowing it to be returned to the page pool.