Define a bit field for use in struct _fields_.
_fields_
The underlying integer type (e.g. c_uint32) or c_bool; other types raise TypeError, as in Python
c_uint32
c_bool
Number of bits
class Flags extends Structure { static _fields_ = [ ["enabled", bitfield(c_uint32, 1)], ["mode", bitfield(c_uint32, 3)], ];} Copy
class Flags extends Structure { static _fields_ = [ ["enabled", bitfield(c_uint32, 1)], ["mode", bitfield(c_uint32, 3)], ];}
Define a bit field for use in struct
_fields_.