Vector128.TryCopyTo<T>(Vector128<T>, Span<T>) 方法

定义

尝试将 复制到 Vector<T> 给定范围。

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

类型参数

T

输入向量的类型。

参数

vector
Vector128<T>

要复制的向量。

destination
Span<T>

要复制到的 destination 跨度。

返回

true 如果 vector 已成功复制到 ,则为 destination;否则, false 如果 的 destination 长度小于 Count,则为 。

例外

不支持 和 destination (T) 的类型vector

适用于