IStorageSlice<T, TSelf> Interface

Represents the common methods and properties for types that serve as the storage for an array slice of the specified type.

Definition

Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public interface IStorageSlice<T, TSelf> : IStorageSlice<T>
where TSelf : Object, IStorageSlice<T, TSelf>
Implements
IStorageSlice<T>

Type Parameters

T
The type of the elements of the array slice.
TSelf
The type that implements the interface.

Remarks

  Caution

Types that implement IStorageSlice<T> are generally meant for performance-critical code. No bounds checks or other validation is performed.

Properties

Item Gets or sets the element at the specified position.
(Inherited from IStorageSlice<T>)
MemorySlice Returns a memory slice over the storage.
(Inherited from IStorageSlice<T>)
SpanSlice Returns a span slice over the storage.
(Inherited from IStorageSlice<T>)
Stride Gets the step between successive elements in the storage array.
(Inherited from IStorageSlice<T>)

Methods

AsSpan Converts an array slice to a span.
(Inherited from IStorageSlice<T>)
CloneData Returns an array slice over a copy of the values in the current slice.
Create(T[]) 
Create(Int32, Boolean) 
From(Int32) Returns a storage slice starting at the specified index.
From(Int32, Int32) Returns an array slice starting at the specified index.
GetIndex Gets the index in the storage array of the element at the specified position.
(Inherited from IStorageSlice<T>)
ToArray Returns the elements of the array slice in an array.
(Inherited from IStorageSlice<T>)

See Also