Method LoadUnsafe
LoadUnsafe<T>(ref readonly T, nuint)
Loads a vector from the given source and element offset.
[CLSCompliant(false)]
public static Vector<T> LoadUnsafe<T>(ref readonly T source, nuint elementOffset)
Parameters
source
TThe source to which elementOffset will be added before loading the vector.
elementOffset
nuintThe element offset from source from which the vector will be loaded.
Returns
- Vector<T>
The vector loaded from
source
pluselementOffset
.
Type Parameters
T
The type of the elements in the vector.
Exceptions
- NotSupportedException
The type of
source
(T
) is not supported.
LoadUnsafe<T>(ref readonly T)
Loads a vector from the given source.
public static Vector<T> LoadUnsafe<T>(ref readonly T source)
Parameters
source
TThe source from which the vector will be loaded.
Returns
- Vector<T>
The vector loaded from
source
.
Type Parameters
T
The type of the elements in the vector.
Exceptions
- NotSupportedException
The type of
source
(T
) is not supported.