Vector.LoadUnsafe 方法

定义

重载

LoadUnsafe<T>(T)

从给定源加载向量。

LoadUnsafe<T>(T, UIntPtr)

从给定的源和元素偏移量加载向量。

LoadUnsafe<T>(T)

Source:
Vector.cs
Source:
Vector.cs

从给定源加载向量。

public:
generic <typename T>
 static System::Numerics::Vector<T> LoadUnsafe(T % source);
public static System.Numerics.Vector<T> LoadUnsafe<T> (ref T source);
static member LoadUnsafe : 'T -> System.Numerics.Vector<'T>
Public Function LoadUnsafe(Of T) (ByRef source As T) As Vector(Of T)

类型参数

T

向量中元素的类型。

参数

source
T

要从中加载矢量的源。

返回

source加载的向量。

例外

不支持 source 类型 (T)。

适用于

LoadUnsafe<T>(T, UIntPtr)

Source:
Vector.cs
Source:
Vector.cs

重要

此 API 不符合 CLS。

从给定的源和元素偏移量加载向量。

public:
generic <typename T>
 static System::Numerics::Vector<T> LoadUnsafe(T % source, UIntPtr elementOffset);
[System.CLSCompliant(false)]
public static System.Numerics.Vector<T> LoadUnsafe<T> (ref T source, UIntPtr elementOffset);
[<System.CLSCompliant(false)>]
static member LoadUnsafe : 'T * unativeint -> System.Numerics.Vector<'T>
Public Function LoadUnsafe(Of T) (ByRef source As T, elementOffset As UIntPtr) As Vector(Of T)

类型参数

T

向量中元素的类型。

参数

source
T

加载向量之前将添加到的源 elementOffset

elementOffset
UIntPtr

unativeint

将从中加载矢量的元素偏移量 source

返回

sourceelementOffset加载的向量。

属性

例外

不支持 source 类型 (T)。

适用于