IStorage Slice<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#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
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
Properties
Item |
Gets or sets the element at the specified position.
(Inherited from IStorageSlice<T>) |
Memory |
Returns a memory slice over the storage.
(Inherited from IStorageSlice<T>) |
Span |
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>) |
Clone | Returns an array slice over a copy of the values in the current slice. |
Create(T[]) | |
Create( | |
From( | Returns a storage slice starting at the specified index. |
From( | Returns an array slice starting at the specified index. |
Get |
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>) |