若要测试位元栏位,判断特定列举值是否存在,请使用布林逻辑运算子。
To test a bit field to determine whether a specific enumeration value is present, use the Boolean logical operators.
对于储存可组合列举的栏位而言,个别的列举值会被视为栏位中的位元群组。
For fields that store combinable enumerations, the individual enumeration values are treated as groups of bits in the field.
若要使用位元栏位正确储存和撷取结合的列举值,列举中所定义的每个值都必须为二的次方。
For a bit field to store and retrieve combined enumeration values correctly, each value that is defined in the enumeration must be a power of two.
除非情况如此,否则布林逻辑运算子就无法抽取栏位中所储存的个别列举值。
Unless this is so, the Boolean logical operators will not be able to extract the individual enumeration values that are stored in the field.
除非情况如此,否则布林逻辑运算子就无法抽取栏位中所储存的个别列举值。
Unless this is so, the Boolean logical operators will not be able to extract the individual enumeration values that are stored in the field.
应用推荐