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
sourceTThe source to which elementOffset will be added before loading the vector.
elementOffsetnuintThe element offset from source from which the vector will be loaded.
Returns
- Vector<T>
The vector loaded from
sourcepluselementOffset.
Type Parameters
TThe 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
sourceTThe source from which the vector will be loaded.
Returns
- Vector<T>
The vector loaded from
source.
Type Parameters
TThe type of the elements in the vector.
Exceptions
- NotSupportedException
The type of
source(T) is not supported.