共用方式為


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,則為 ,否則為 ,如果 的destination長度小於 則falseCount

例外狀況

不支援和 destination (T) 的類型vector

適用於