Method MapFlags
- Namespace
- Zyl.VectorTraits.Numerics
- Assembly
- VectorTraits.dll
MapFlags(int, int, int)
Mapping old flags to new flags (将旧标志映射为新标志).
public static int MapFlags(int src, int matchFlag, int newFlag)
Parameters
Returns
- int
Returns the mapped value(返回映射后的值).
MapFlags(int, int, int, int, int)
Mapping 2 groups of old flags to new flags (将2组旧标志映射为新标志).
public static int MapFlags(int src, int matchFlag0, int newFlag0, int matchFlag1, int newFlag1)
Parameters
src
intSource value (源值).
matchFlag0
intFlags to be matched 0 (欲匹配的标志0)
newFlag0
intNew flag 0 (新的标志0).
matchFlag1
intFlags to be matched 1 (欲匹配的标志1)
newFlag1
intNew flag 1 (新的标志1).
Returns
- int
Returns the mapped value(返回映射后的值).