Vector256.TryCopyTo<T>(Vector256<T>, Span<T>) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
嘗試將 複製到 Vector<T> 指定的範圍。
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
類型參數
- T
輸入向量的型別。
參數
- vector
- Vector256<T>
要複製的向量。
- destination
- Span<T>
複製至的 destination
範圍。
傳回
true
如果 vector
已順利複製到 destination
,則為 ,否則為 ,如果 的destination
長度小於 則false
為 Count。
例外狀況
不支援和 destination
(T
) 的類型vector
。