SpanSlice<T> Constructor

Constructs a new span slice.

Definition

Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
C#
public SpanSlice(
	Span<T> span,
	int stride,
	int length
)

Parameters

span  Span<T>
The span containing the elements.
stride  Int32
The distance between successive elements in the span.
length  Int32
The number of elements in the slice.

Exceptions

ArgumentOutOfRangeExceptionlength is negative.
ArgumentExceptionThe span is too short for the specified length and stride.

See Also