Memory Slice<T> Implicit Conversion Operators
Definition
Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Implicit(Memory<T> to MemorySlice<T>) | Implicitly converts a memory block to a memory slice with unit stride. |
Implicit(T[] to MemorySlice<T>) | Implicitly converts a .NET array to a memory slice with unit stride. |
Implicit Conversion (Memory<T> to MemorySlice<T>)
Implicitly converts a memory block to a memory slice with unit stride.
public static implicit operator MemorySlice<T> (
Memory<T> memory
)
Parameters
Return Value
MemorySlice<T>An memory slice with zero offset and unit stride that uses memory as its storage.
Implicit Conversion (T[] to MemorySlice<T>)
Implicitly converts a .NET array to a memory slice with unit stride.
public static implicit operator MemorySlice<T> (
T[] array
)
Parameters
- array T[]
- The .NET array to convert.
Return Value
MemorySlice<T>An memory slice with zero offset and unit stride that uses array as its storage array.