Compartilhar via


Vector128.TryCopyTo<T>(Vector128<T>, Span<T>) Método

Definição

Tenta copiar um Vector<T> para um determinado intervalo.

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

Parâmetros de tipo

T

O tipo do vetor de entrada.

Parâmetros

vector
Vector128<T>

O vetor a ser copiado.

destination
Span<T>

O intervalo para o qual destination é copiado.

Retornos

true se vector tiver sido copiado com êxito para destination; caso contrário, false se o comprimento de destination for menor que Count.

Exceções

Não há suporte para o tipo de vector e destination (T).

Aplica-se a