SpanSlice<T> Structure

Note: This API is now obsolete.
Represents a slice of elements in a span.

Definition

Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public readonly struct SpanSlice<T>
Inheritance
Object  →  ValueType  →  SpanSlice<T>

Type Parameters

T
The type of the elements of the span.

Constructors

SpanSlice<T> Constructs a new span slice.

Properties

Item Gets or sets the element at the specified position.

Methods

AsSpan2D Constructs a 2D array with the specified leading dimension.
EqualsIndicates whether this instance and a specified object are equal.
(Inherited from ValueType)
From(Int32) Returns an array slice starting at the specified index.
From(Int32, Int32) Returns an array slice starting at the specified index.
GetHashCodeReturns the hash code for this instance.
(Inherited from ValueType)
GetIndex Gets the index in the storage array of the element at the specified position.
GetTypeGets the Type of the current instance.
(Inherited from Object)
ToStringReturns the fully qualified type name of this instance.
(Inherited from ValueType)

Operators

Implicit(Span<T> to SpanSlice<T>) Implicitly converts a span to a span slice with unit stride.

Fields

Span Gets the (contiguous) span containing the elements.
Stride Gets the distance between successive elements in the span.

See Also