Table of Contents

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

src int

Source value (源值).

matchFlag int

Flags to be matched (欲匹配的标志)

newFlag int

New flag (新的标志).

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 int

Source value (源值).

matchFlag0 int

Flags to be matched 0 (欲匹配的标志0)

newFlag0 int

New flag 0 (新的标志0).

matchFlag1 int

Flags to be matched 1 (欲匹配的标志1)

newFlag1 int

New flag 1 (新的标志1).

Returns

int

Returns the mapped value(返回映射后的值).