Vector.AsVectorNInt<T>(Vector<T>) Method

Definition

Reinterprets the bits of a specified vector into those of a vector of native-sized integers.

C#
public static System.Numerics.Vector<nint> AsVectorNInt<T>(System.Numerics.Vector<T> value) where T : struct;
C#
public static System.Numerics.Vector<IntPtr> AsVectorNInt<T>(System.Numerics.Vector<T> value) where T : struct;
C#
public static System.Numerics.Vector<IntPtr> AsVectorNInt<T>(System.Numerics.Vector<T> value);

Type Parameters

T

The type of the input vector.

Parameters

value
Vector<T>

The vector to reinterpret.

Returns

Vector<nint>

value reinterpreted as a new Vector<T>.

Exceptions

The type of value (T) is not supported.

Applies to

Product Versions
.NET 6, 7, 8, 9