Read Only Span Slice<T> Structure
Represents a read-only slice of elements in a span.
Definition
Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
public ref struct ReadOnlySpanSlice<T>
Type Parameters
- T
- The type of the elements of the span.
Constructors
Read | Constructs a new read-only 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(ReadOnlySpan<T> to ReadOnlySpanSlice<T>) | Implicitly converts a span to a span slice with unit stride. |
Implicit(Span<T> to ReadOnlySpanSlice<T>) | Implicitly converts a span to a span slice with unit stride. |
Implicit(SpanSlice<T> to ReadOnlySpanSlice<T>) | Implicitly converts a span slice to a read-only span slice. |
Fields
Span | Gets the (contiguous) span containing the elements. |
Stride | Gets the distance between successive elements in the span. |