Bit masks are useful tools for toggling various flags and options. This set of functions module provides a mechanism to create an array of bits of arbitrary length and manipulate them with basic binary operations. A print function is also provided to display the entire set of bits in binary format as a string.
Definition in file psBitSet.h.
#include "psType.h"
Include dependency graph for psBitSet.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| psBitSet * | psBitSetAlloc (psS32 n) |
| Allocate a psBitSet. | |
| psBitSet * | psBitSetSet (psBitSet *inMask, psS32 bit) |
| Set a bit. | |
| psBitSet * | psBitSetClear (psBitSet *inMask, psS32 bit) |
| Clear a bit. | |
| psBool | psBitSetTest (const psBitSet *inMask, psS32 bit) |
| Test the value of a bit. | |
| psBitSet * | psBitSetOp (psBitSet *outMask, const psBitSet *inMask1, char *operator, const psBitSet *inMask2) |
| Perform a binary operation on two psBitSets. | |
| psBitSet * | psBitSetNot (psBitSet *outBitSet, const psBitSet *inBitSet) |
| Perform a not operation on a psBitSet. | |
| char * | psBitSetToString (const psBitSet *inMask) |
| Convert the psBitSet to a string of ones and zeros. | |
1.4.1