Table of Contents

Method LoadUnsafe

Namespace
Zyl.ExSpans.Impl
Assembly
ExSpans.dll

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 T

The source to which elementOffset will be added before loading the vector.

elementOffset nuint

The element offset from source from which the vector will be loaded.

Returns

Vector<T>

The vector loaded from source plus elementOffset.

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 T

The 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.