ReadOnlySpanSlice<T>.WithLength Method

Returns a span slice with the same span and stride but with the specified length.

Definition

Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.0.0
C#
public ReadOnlySpanSlice<T> WithLength(
	int length
)

Parameters

length  Int32
The number of elements in the new slice.

Return Value

ReadOnlySpanSlice<T>
A span slice with the specified length.

See Also