Bagikan melalui


Vector256.TryCopyTo<T>(Vector256<T>, Span<T>) Metode

Definisi

Mencoba menyalin Vector<T> ke rentang tertentu.

public:
generic <typename T>
 where T : value class[System::Runtime::CompilerServices::Extension]
 static bool TryCopyTo(System::Runtime::Intrinsics::Vector256<T> vector, Span<T> destination);
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static bool TryCopyTo(System::Runtime::Intrinsics::Vector256<T> vector, Span<T> destination);
public static bool TryCopyTo<T> (this System.Runtime.Intrinsics.Vector256<T> vector, Span<T> destination) where T : struct;
public static bool TryCopyTo<T> (this System.Runtime.Intrinsics.Vector256<T> vector, Span<T> destination);
static member TryCopyTo : System.Runtime.Intrinsics.Vector256<'T (requires 'T : struct)> * Span<'T (requires 'T : struct)> -> bool (requires 'T : struct)
static member TryCopyTo : System.Runtime.Intrinsics.Vector256<'T> * Span<'T> -> bool
<Extension()>
Public Function TryCopyTo(Of T As Structure) (vector As Vector256(Of T), destination As Span(Of T)) As Boolean
<Extension()>
Public Function TryCopyTo(Of T) (vector As Vector256(Of T), destination As Span(Of T)) As Boolean

Jenis parameter

T

Jenis vektor input.

Parameter

vector
Vector256<T>

Vektor untuk disalin.

destination
Span<T>

Rentang yang destination disalin.

Mengembalikan

true jika vector berhasil disalin ke destination; jika tidak, false jika panjangnya destination kurang dari Count.

Pengecualian

Jenis vector dan destination (T) tidak didukung.

Berlaku untuk