| + | +|||||||||
+ name
+ :
+ bits
+ -
+ field
+ (optional)
+ |
+ (1) + | ++ | +|||||||
| + | +|||||||||
+ name
+ :
+ 0
+ |
+ (2) + | ++ | +|||||||
| + | +|||||||||
+ name
+ :
+ field-or-action
+ |
+ (3) + | ++ | +|||||||
| + | +|||||||||
+ name
+ :
+ (
+ field
+ ,
+ factory
+ )
+ |
+ (4) + | ++ | +|||||||
| + | +
+ name
+ :
+ (
+ bits
+ ,
+ factory
+ (optional)
+ ,
+ options
+ (optional)
+ )
+ |
+ (5) + | ++ | + +||||||
| + | +|||||||||
| name + | +- + | +Any valid Python attribute name. + | +
| bits + | +- + | + Any valid positive integer starting from 0.
+ |
+
| field + | +- + | +
+ Any valid field definition for a struct resulting in a
+ _StructLike
+ that implements the subtract-operation resulting in a
+ Field
+ instance.
+ |
+
| field-or-action + | +- + | +
+ Any valid field definition for a struct resulting or an object implementing the
+ _ActionLike
+ protocol.
+ |
+
| factory + | +- + | +
+ Either a target Python type to use as factory or an instance of
+ BitfieldValueFactory.
+ |
+
| options + | +- + | +
+ One or more options represented either as flags or instances of
+ SetAlignment.
+ |
+