module documentation
Utility functions for managing bitarrays.
| Function | |
Helper method to get first available slot in a bitarray |
| Constant | _AVAILABLE |
Undocumented |
Helper method to get first available slot in a bitarray
| Parameters | |
| slots:bitarray | the bitarray to operate on |
| slot:integer | if given we check whether the slot is free |
| reserve:boolean | whether to reserve the first available slot or not |
| Returns | |
| the idx of the (first) available slot | |
| Raises | |
errors.OpPrereqError | If all slots in a bitarray are occupied or the given slot is not free. |