Method ToInt32Mask
- Namespace
- Zyl.VectorTraits.Numerics
- Assembly
- VectorTraits.dll
ToInt32Mask(bool)
Convert bool to Int32 mask (将 bool 转为 Int32 掩码).
[CLSCompliant(false)]
public static int ToInt32Mask(bool b)
Parameters
b
boolSource bool value (源 bool 值)
Returns
- int
A int value (一个整数值). false is 0, true is -1 .