已将较大的位元栏位指定到较小的位元栏位。
若要测试位元栏位,判断特定列举值是否存在,请使用布林逻辑运算子。
To test a bit field to determine whether a specific enumeration value is present, use the Boolean logical operators.
若要使用位元栏位正确储存和撷取结合的列举值,列举中所定义的每个值都必须为二的次方。
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.
应用推荐