wget2: bitmap.c File Reference

| wget2 2.0.0

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

Data Structures | Macros | Functions
bitmap.c File Reference

### (2021-09-05 15:34:56 -0600, (build 0f85ef3))

Functions for bitmap. More...

`#include <config.h>`
`#include <stdio.h>`
`#include <stdlib.h>`
`#include <stdbool.h>`
`#include <wget.h>`
`#include "private.h"`
Include dependency graph for bitmap.c:

## Data Structures
struct | wget_bitmap_st

## Macros
#define | bitmap_type uint64_t
#define | bitmap_bits (sizeof(bitmap_type) * 8)
#define | bitmap_shift 6
#define | map(n) (((wget_bitmap *)b)->map[(n) >> bitmap_shift])
#define | bit(n) (((bitmap_type) 1) << ((n) & (bitmap_bits - 1)))

## Functions
void | wget_bitmap_set (wget_bitmap *b, unsigned n)
void | wget_bitmap_clear (wget_bitmap *b, unsigned n)
bool | wget_bitmap_get (const wget_bitmap *b, unsigned n)
int | wget_bitmap_init (wget_bitmap **b, unsigned bits)
void | wget_bitmap_free (wget_bitmap **b)

## Detailed Description

Functions for bitmap.