Vector256.AsByte<T>(Vector256<T>) Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Reinterprets a Vector256<T> as a new Vector256 of type Byte.

C#
public static System.Runtime.Intrinsics.Vector256<byte> AsByte<T>(this System.Runtime.Intrinsics.Vector256<T> vector);
C#
public static System.Runtime.Intrinsics.Vector256<byte> AsByte<T>(this System.Runtime.Intrinsics.Vector256<T> vector) where T : struct;

Type Parameters

T

The type of the input vector.

Parameters

vector
Vector256<T>

The vector to reinterpret.

Returns

vector reinterpreted as a new Vector256 of type Byte.

Exceptions

The type of vector (T) is not supported.

Applies to

Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10