Click or drag to resize

JCOBridgeDirectBufferTAsSpanFromIndex Method

Returns a zero-copy ReadOnlySpanT over the buffer starting at the specified element index.

Namespace: MASES.JCOBridge.C2JBridge
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.10.261112-5ffe0920c00dbac056780af7ab9b1978b26ef4a5
Syntax
public ReadOnlySpan<T> AsSpanFromIndex(
	int fromIndex
)

Parameters

fromIndex  Int32
Zero-based index of the first element to include in the span.

Return Value

ReadOnlySpanT
A ReadOnlySpanT covering all elements from fromIndex to the end of the buffer, backed directly by the native memory buffer.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException Thrown when fromIndex is negative or greater than or equal to the element count.
NotSupportedException Thrown when the number of remaining elements exceeds MaxValue.
See Also