Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
bitarray_t Struct Reference

#include <bitarray.h>

Data Fields

union { 
 
   uint8_t   block [sizeof(uint8_t *)] 
 inline storage for small arrays More...
 
   uint8_t *   base 
 start of the underlying allocated buffer More...
 
u 
 
size_t size_bits
 extent in bits
 

Detailed Description

a compressed array of boolean values

Note that this complies with the zero-is-initialization idiom. That is, C99 zero initializing one of these (bitarray_t b = {0}) or memseting one of these to zero gives you a valid zero-length bit array.

Definition at line 38 of file bitarray.h.

Field Documentation

◆ base

uint8_t* bitarray_t::base

Definition at line 41 of file bitarray.h.

Referenced by bitarray_get(), bitarray_new(), bitarray_reset(), and bitarray_set().

◆ block

uint8_t bitarray_t::block[sizeof(uint8_t *)]

Definition at line 40 of file bitarray.h.

Referenced by bitarray_get(), bitarray_new(), bitarray_reset(), and bitarray_set().

◆ size_bits

size_t bitarray_t::size_bits

Definition at line 43 of file bitarray.h.

Referenced by bitarray_get(), bitarray_new(), bitarray_reset(), and bitarray_set().

◆ [union]

union { ... } bitarray_t::u

The documentation for this struct was generated from the following file: