Array1D<T>.AsSpan Method

Definition

Namespace: Extreme.Collections
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

AsSpan(Int32) Returns a span of the specified length from the beginning of the array.
AsSpan(Int32, Int32) Returns a span of the specified length from the specified start index.

Array1D<T>.AsSpan(Int32)

Returns a span of the specified length from the beginning of the array.
C#
public Span<T> AsSpan(
	int length
)

Parameters

length  Int32
The length of the span.

Return Value

Span<T>
A span that starts at the beginning of the array and has length length.

Array1D<T>.AsSpan(Int32, Int32)

Returns a span of the specified length from the specified start index.
C#
public Span<T> AsSpan(
	int startIndex,
	int length
)

Parameters

startIndex  Int32
The start index of the span.
length  Int32
The length of the span.

Return Value

Span<T>
A span that starts at startIndex and has length length.

See Also