# Vector128<T> 结构

## 定义

``````generic <typename T>
where T : value classpublic value class Vector128 : IEquatable<System::Runtime::Intrinsics::Vector128<T>>``````
``public struct Vector128<T> : IEquatable<System.Runtime.Intrinsics.Vector128<T>> where T : struct``
``type Vector128<'T (requires 'T : struct)> = struct``
``````Public Structure Vector128(Of T)
Implements IEquatable(Of Vector128(Of T))``````

T

Vector128<T>

## 属性

 获取 `T` 中 Vector128 的数量。Gets the number of `T` that are in a Vector128. 获取新的 Vector128，其中所有元素已初始化为零。Gets a new Vector128 with all elements initialized to zero.

## 方法

 确定指定的对象是否等于当前实例。Determines whether the specified object is equal to the current instance. 确定指定的 Vector128 是否等同于当前实例。Determines whether the specified Vector128 is equal to the current instance. 获取实例的哈希代码。Gets the hash code for the instance. 将当前实例转换为等效的字符串表示形式。Converts the current instance to an equivalent string representation.

## 扩展方法

 将 `T` 类型的 Vector128 重新解释为 `U` 类型的新 Vector128。Reinterprets a Vector128 of type `T` as a new Vector128 of type `U`. 将 Vector128 重新解释为 Byte 类型的新 Vector128。Reinterprets a Vector128 as a new Vector128 of type Byte. 将 Vector128 重新解释为 Double 类型的新 Vector128。Reinterprets a Vector128 as a new Vector128 of type Double. 将 Vector128 重新解释为 Int16 类型的新 Vector128。Reinterprets a Vector128 as a new Vector128 of type Int16. 将 Vector128 重新解释为 Int32 类型的新 Vector128。Reinterprets a Vector128 as a new Vector128 of type Int32. 将 Vector128 重新解释为 Int64 类型的新 Vector128。Reinterprets a Vector128 as a new Vector128 of type Int64. 将 Vector128 重新解释为 SByte 类型的新 Vector128。Reinterprets a Vector128 as a new Vector128 of type SByte. 将 Vector128 重新解释为 Single 类型的新 Vector128。Reinterprets a Vector128 as a new Vector128 of type Single. 将 Vector128 重新解释为 UInt16 类型的新 Vector128。Reinterprets a Vector128 as a new Vector128 of type UInt16. 将 Vector128 重新解释为 UInt32 类型的新 Vector128。Reinterprets a Vector128 as a new Vector128 of type UInt32. 将 Vector128 重新解释为 UInt64 类型的新 Vector128。Reinterprets a Vector128 as a new Vector128 of type UInt64. 获取指定索引处的元素。Gets the element at the specified index. 获取低 64 位的值作为新的 Vector64。Gets the value of the lower 64-bits as a new Vector64. 获取高 64 位的值作为新的 Vector64。Gets the value of the upper 64-bits as a new Vector64. 将给定向量转换为包含第一个元素的值的标量。Converts the given vector to a scalar containing the value of the first element. 将给定向量转换为新的 Vector256，将低 128 位设为给定向量的值，高 128 位初始化为零。Converts the given vector to a new Vector256 with the lower 128-bits set to the value of the given vector and the upper 128-bits initialized to zero. 将给定向量转换为新的 Vector256，将低 128 位设为给定向量的值，高 128 位保留为未初始化状态。Converts the given vector to a new Vector256 with the lower 128-bits set to the value of the given vector and the upper 128-bits left uninitialized. 创建一个新的 Vector128，将指定索引处的元素设置为指定值，并将其余元素设置为与给定向量中的值相同的值。Creates a new Vector128 with the element at the specified index set to the specified value and the remaining elements set to the same value as that in the given vector. 创建一个新的 Vector128，将低 64 位设置为指定值，并将高 64 位设置为与给定向量中的值相同的值。Creates a new Vector128 with the lower 64-bits set to the specified value and the upper 64-bits set to the same value as that in the given vector. 创建一个新的 Vector128，将高 64 位设置为指定值，并将低 64 位设置为与给定向量中的值相同的值。Creates a new Vector128 with the upper 64-bits set to the specified value and the upper 64-bits set to the same value as that in the given vector.