ArcBufferPage
class
Namespace: Orleans.Serialization.Buffers
A page of data.
public sealed class ArcBufferPageProperties
ArrayGets the array underpinning the page.IsMinimumSizeGets a value indicating whether this page is equal to the minimum page size.IsValidGets a value indicating whether this page is valid.LengthGets the number of bytes which have been written to the page.NextGets the next node.ReadableArraySegmentAnSystem.ArraySegmentcontaining the readable bytes from this page.ReadableMemoryASystem.ReadOnlyMemorycontaining the readable bytes from this page.ReadableSpanASystem.ReadOnlySpancontaining the readable bytes from this page.VersionGets the current page version.WritableArraySegmentAnSystem.ArraySegmentcontaining the writable bytes from this page.WritableMemoryGets the writable memory in the page.WritableSpanGets a span representing the writable memory in the page.WriteCapacityGets 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 providedtokendoes not match the page'sArcBufferPage.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.
