Skip to content

ArcBuffer.UnsafeSlice(int, int)

UnsafeSlice(int, int)

View source
public readonly ArcBuffer UnsafeSlice(int offset, int length)
Creates a slice whose lifetime is bounded by this buffer.

Parameters

offsetint
The zero-based offset at which the slice begins.
lengthint
The length of the slice.

Returns

An unpinned slice which remains valid while this buffer keeps the referenced pages pinned.