|
@@ -29,16 +29,19 @@
|
|
|
#include <inttypes.h>
|
|
|
#include <stddef.h> /* for size_t */
|
|
|
|
|
|
+/** The data type of the bitmap array element */
|
|
|
#define BMAP_EL_TYPE uint64_t
|
|
|
+/** The size of bitmap array element in bits */
|
|
|
#define BMAP_EL_SIZE_BITS (sizeof(BMAP_EL_TYPE) * 8)
|
|
|
-
|
|
|
+/** The number of bitmap array elements */
|
|
|
#define BMAP_INDEX_NUM 20
|
|
|
|
|
|
/** Bitmap-organized raw block header data structure */
|
|
|
typedef struct bitmap_rb_s {
|
|
|
- BMAP_EL_TYPE bmap_array[BMAP_INDEX_NUM];
|
|
|
- size_t bytes_per_cell; /* FIXME - As long as the bitmap arrays are
|
|
|
- fixed-sized, this is also fixed */
|
|
|
+ BMAP_EL_TYPE bmap_array[BMAP_INDEX_NUM]; /**< The bitmap vector */
|
|
|
+ size_t bytes_per_cell; /**< The raw block's resolution */
|
|
|
+ /* FIXME - As long as the bitmap arrays are fixed-sized,
|
|
|
+ * this is also fixed */
|
|
|
} bitmap_rb_t;
|
|
|
|
|
|
/** Chunk header data structure */
|