#include <libcork/ds.h>
This sections defines a type for storing an array of bits. This data structure is most often used to implement a set of integers. It is particularly good when you expect your sets to be dense. You should not use a bitset if the number of possibly elements is outrageously large, however, since that would cause your bitset to exhaust the available memory.
An array of bits. You should not allocate any instances of this type yourself; use cork_bitset_new() instead.
Create a new bitset with enough space to store the given number of bits. All bits will be initialized to 0.
Free a bitset.
Return whether the given bit is on or off in set. It is your responsibility to ensure that index is within the valid range for set.
Turn the given bit on or off in set. It is your responsibility to ensure that index is within the valid range for set.
Turn off of the bits in set.