Span Slice<T> Structure
Represents a slice of elements in a span.
Definition
Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public readonly struct SpanSlice<T>
Type Parameters
- T
- The type of the elements of the span.
Constructors
Span | 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. |
Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType) |
From( | Returns an array slice starting at the specified index. |
From( | Returns an array slice starting at the specified index. |
Get | Returns the hash code for this instance. (Inherited from ValueType) |
Get | Gets the index in the storage array of the element at the specified position. |
Get | Gets the Type of the current instance. (Inherited from Object) |
ToString | Returns 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. |