|
libcute 0.1
|


Go to the source code of this file.
Classes | |
| struct | cu_Bitmap |
| Dynamically allocated bitmap. More... | |
Functions | |
| cu_Bitmap_Optional | cu_Bitmap_create (cu_Allocator backingAllocator, size_t bitCount) |
| void | cu_Bitmap_destroy (cu_Bitmap *bitmap) |
| bool | cu_Bitmap_get (const cu_Bitmap *bitmap, size_t index) |
| void | cu_Bitmap_set (cu_Bitmap *bitmap, size_t index) |
| void | cu_Bitmap_clear (cu_Bitmap *bitmap, size_t index) |
| void | cu_Bitmap_clear_all (cu_Bitmap *bitmap) |
Heap-backed bitmap container.
| void cu_Bitmap_clear | ( | cu_Bitmap * | bitmap, |
| size_t | index | ||
| ) |
Clear a single bit.


| void cu_Bitmap_clear_all | ( | cu_Bitmap * | bitmap | ) |
Clear all bits in the bitmap.


| cu_Bitmap_Optional cu_Bitmap_create | ( | cu_Allocator | backingAllocator, |
| size_t | bitCount | ||
| ) |
Create a bitmap with the given number of bits.
| void cu_Bitmap_destroy | ( | cu_Bitmap * | bitmap | ) |
Release all memory owned by bitmap.


| bool cu_Bitmap_get | ( | const cu_Bitmap * | bitmap, |
| size_t | index | ||
| ) |
Query a single bit.


| void cu_Bitmap_set | ( | cu_Bitmap * | bitmap, |
| size_t | index | ||
| ) |
Set a single bit.

