Class TypeCodeFlagsUtil
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
TypeCodeFlags util (类型代码位标识工具).
public static class TypeCodeFlagsUtil
- Inheritance
-
TypeCodeFlagsUtil
- Inherited Members
Fields
- AllTypes
TypeCodeFlags of Standard all types (标准所有类型).
AllTypes = TypeCodeFlags.Single | TypeCodeFlags.Double | TypeCodeFlags.SByte | TypeCodeFlags.Byte | TypeCodeFlags.Int16 | TypeCodeFlags.UInt16 | TypeCodeFlags.Int32 | TypeCodeFlags.UInt32 | TypeCodeFlags.Int64 | TypeCodeFlags.UInt64
.
- FloatTypes
TypeCodeFlags of Standard float types (标准浮点类型).
- IntPtrCode
ElementTypeCode of nint.
- IntPtrFlags
TypeCodeFlags of nint.
- IntTypes
TypeCodeFlags of Standard integer types (标准整数类型).
- Most32FloatTypes
TypeCodeFlags of most32 float types.
- Most32IntTypes
TypeCodeFlags of most32 integer types.
- Most32Types
TypeCodeFlags of most32 types.
Most32BaseTypes = TypeCodeFlags.Single | TypeCodeFlags.SByte | TypeCodeFlags.Byte | TypeCodeFlags.Int16 | TypeCodeFlags.UInt16 | TypeCodeFlags.Int32 | TypeCodeFlags.UInt32
.
- UIntPtrCode
ElementTypeCode of nuint.
- UIntPtrFlags
TypeCodeFlags of nuint.
Properties
- Bit128Types
TypeCodeFlags of 128-bits types (128位的类型).
Bit128Types = TypeCodeFlags.Int128 | TypeCodeFlags.UInt128
.
- Bit16Types
TypeCodeFlags of 16-bits types (16位的类型).
Bit16Types = TypeCodeFlags.Int16 | TypeCodeFlags.UInt16
.
- Bit32Types
TypeCodeFlags of 32-bits types (32位的类型).
Bit32Types = TypeCodeFlags.Int32 | TypeCodeFlags.UInt32 | TypeCodeFlags.Single
.
- Bit64Types
TypeCodeFlags of 64-bits types (64位的类型).
Bit64Types = TypeCodeFlags.Int64 | TypeCodeFlags.UInt64 | TypeCodeFlags.Double
.
- Bit8Types
TypeCodeFlags of 8-bits types (8位的类型).
Bit8Types = TypeCodeFlags.SByte | TypeCodeFlags.Byte
.
- ExAllTypes
TypeCodeFlags of Ex all types (扩展所有类型).
ExAllTypes = TypeCodeFlags.Single | TypeCodeFlags.Double | TypeCodeFlags.SByte | TypeCodeFlags.Byte | TypeCodeFlags.Int16 | TypeCodeFlags.UInt16 | TypeCodeFlags.Int32 | TypeCodeFlags.UInt32 | TypeCodeFlags.Int64 | TypeCodeFlags.UInt64 | TypeCodeFlags.Int128 | TypeCodeFlags.UInt128
.
- ExFloatTypes
TypeCodeFlags of Ex float types (扩展浮点类型).
ExFloatTypes = TypeCodeFlags.Single | TypeCodeFlags.Double
.
- ExIntTypes
TypeCodeFlags of Ex integer types (扩展整数类型).
ExIntTypes = TypeCodeFlags.SByte | TypeCodeFlags.Byte | TypeCodeFlags.Int16 | TypeCodeFlags.UInt16 | TypeCodeFlags.Int32 | TypeCodeFlags.UInt32 | TypeCodeFlags.Int64 | TypeCodeFlags.UInt64 | TypeCodeFlags.Int128 | TypeCodeFlags.UInt128
.
- PureExAllTypes
TypeCodeFlags of PureEx all types (纯扩展所有类型).
PureExAllTypes = TypeCodeFlags.Int128 | TypeCodeFlags.UInt128
.
- PureExFloatTypes
TypeCodeFlags of PureEx float types (纯扩展浮点类型).
PureExFloatTypes = TypeCodeFlags.None
.
- PureExIntTypes
TypeCodeFlags of PureEx integer types (纯扩展整数类型).
PureExIntTypes = TypeCodeFlags.Int128 | TypeCodeFlags.UInt128
.
Methods
- FlagsFromTypeCode(int)
Convert
ElementTypeCode
toTypeCodeFlags
(将ElementTypeCode
转为TypeCodeFlags
). The code is int value.
- FlagsFromTypeCode(ElementTypeCode)
Convert
ElementTypeCode
toTypeCodeFlags
(将ElementTypeCode
转为TypeCodeFlags
).
- ForEach(TypeCodeFlags, Action<ElementTypeCode>)
Performs the specified action on each element of the specified TypeCodeFlags (对指定 TypeCodeFlags 的每个元素执行指定动作).
- FromTypeCode(TypeCode)
Convert
TypeCode
toElementTypeCode
(将TypeCode
转为ElementTypeCode
).
- MapFlags(TypeCodeFlags, TypeCodeFlags, TypeCodeFlags)
Mapping old flags to new flags (将旧标志映射为新标志).
- MapFlags(TypeCodeFlags, TypeCodeFlags, TypeCodeFlags, TypeCodeFlags, TypeCodeFlags)
Mapping 2 groups of old flags to new flags (将2组旧标志映射为新标志).
- ToEnumerable(TypeCodeFlags)
Convert to IEnumerable<T> (转为 IEnumerable<T>).
- ToTypeCode(ElementTypeCode)
Convert
ElementTypeCode
toTypeCode
(将ElementTypeCode
转为TypeCode
).