ReadOnlySpanSlice<T> Structure

Note: This API is now obsolete.
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.3
C#
public ref struct ReadOnlySpanSlice<T>
Inheritance
Object  →  ValueType  →  ReadOnlySpanSlice<T>

Type Parameters

T
The type of the elements of the span.

Constructors

ReadOnlySpanSlice<T> 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.
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(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.

See Also