Edit

ArcBufferPage Class

Definition

A page of data.

public sealed class ArcBufferPage
type ArcBufferPage = class
Public NotInheritable Class ArcBufferPage
Inheritance
ArcBufferPage

Properties

Name Description
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 ArraySegment<T> containing the readable bytes from this page.

ReadableMemory

A ReadOnlyMemory<T> containing the readable bytes from this page.

ReadableSpan

A ReadOnlySpan<T> containing the readable bytes from this page.

Version

Gets the current page version.

WritableArraySegment

An ArraySegment<T> 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

Name Description
Advance(Int32)

Increases the number of bytes written to the page by the provided amount.

AsArraySegment(Int32, Int32)

Returns an array segment pointing to the underlying array, starting from the provided offset, and having the provided length.

AsMemory(Int32, Int32)

Creates a new memory region over the portion of the target page beginning at a specified position with a specified length.

AsMemory(Int32)

Creates a new memory region over the portion of the target page beginning at a specified position.

AsSpan(Int32, Int32)

Gets a span pointing to the underlying array, starting from the provided offset.

AsSpan(Int32)

Gets a span pointing to the underlying array, starting from the provided offset.

CheckValidity(Int32)

Throws if the provided token does not match the page's Version.

Pin(Int32)

Pins this page to prevent it from being returned to the page pool.

ResizeLargeSegment(Int32)
SetNext(ArcBufferPage, Int32)

Sets the next page in the sequence.

Unpin(Int32)

Unpins this page, allowing it to be returned to the page pool.

Applies to