Array1D<T>.AsSpan Method

Definition

Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0

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.

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.

Implements

IStorageSlice<T>.AsSpan(Int32)

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