Package lacewing :: Module byteflag
[frames] | no frames]

Module byteflag

source code

Perfom flag operations on numbers.

Functions
 
listFlag(flaglist)
Takes a list of bools and returns a flagbyte.
source code
 
setFlag(flagbyte, pos, status)
Sets the bit at 'pos' to 'status', and returns the modified flagbyte.
source code
 
getFlag(flagbyte, pos)
Returns the bit at 'pos' in 'flagbyte'
source code
 
getFlags(flagbyte, *positions)
Returns the bits specified in the arguments
source code
Variables
  __package__ = None
hash(x)