|
ELinks 0.19.1
|
A vector of bits. More...
#include <bitfield.h>
Data Fields | |
| unsigned int | bitsize |
| Number of bits in the bitfield. | |
| unsigned char | bits [1] |
| Strawberry bitfields forever. | |
Related Symbols | |
(Note that these are not member symbols.) | |
| #define | foreach_bitfield_set(bit, bitfield) |
| #define | foreachback_bitfield_set(bit, bitfield) |
| #define | foreach_bitfield_cleared(bit, bitfield) |
| static struct bitfield * | init_bitfield (size_t bits) |
| Allocate a bitfield containing bits number of bits. | |
| static void | copy_bitfield (struct bitfield *bitfield, const char *bits, unsigned int bytesize) |
| Update bitfield with the bytesize bytes from the bit string in bits. | |
| static int | test_bitfield_bit (struct bitfield *bitfield, unsigned int bit) |
| Test whether bit is set in the bitfield. | |
| static void | set_bitfield_bit (struct bitfield *bitfield, unsigned int bit) |
| Set bit in the bitfield. | |
| static void | clear_bitfield_bit (struct bitfield *bitfield, unsigned int bit) |
| Unset bit in the bitfield. | |
| static unsigned int | get_bitfield_set_count (struct bitfield *bitfield) |
| Count the set bits in bitfield. | |
| static unsigned int | get_bitfield_cleared_count (struct bitfield *bitfield) |
| Count the unset bits in bitfield. | |
| static unsigned int | bitfield_is_set (struct bitfield *bitfield) |
| Check whether all bits of bitfield are set. | |
| static unsigned int | bitfield_is_cleared (struct bitfield *bitfield) |
| Check whether all bits of bitfield are unset. | |
A vector of bits.
The size is fixed at initialization time.
|
Check whether all bits of bitfield are unset.
|
Check whether all bits of bitfield are set.
|
Unset bit in the bitfield.
|
Update bitfield with the bytesize bytes from the bit string in bits.
|
|
|
|
Count the unset bits in bitfield.
|
Count the set bits in bitfield.
|
Allocate a bitfield containing bits number of bits.
|
Set bit in the bitfield.
|
Test whether bit is set in the bitfield.
| unsigned char bitfield::bits[1] |
Strawberry bitfields forever.
| unsigned int bitfield::bitsize |
Number of bits in the bitfield.