libcute 0.1
Loading...
Searching...
No Matches
Public Attributes | List of all members
cu_Bitmap Struct Reference

Dynamically allocated bitmap. More...

#include <bitmap.h>

Collaboration diagram for cu_Bitmap:
Collaboration graph
[legend]

Public Attributes

cu_Allocator backingAllocator
 
size_t * bits
 
size_t bitCount
 

Detailed Description

Dynamically allocated bitmap.

The bitmap stores its bits on the heap using the provided allocator. Bits are referenced by index starting at zero. Out‑of‑range accesses are ignored to keep the API simple. The number of bits is specified during creation and can be queried with cu_Bitmap_size.

Member Data Documentation

◆ backingAllocator

cu_Allocator cu_Bitmap::backingAllocator

allocator used for bookkeeping

◆ bitCount

size_t cu_Bitmap::bitCount

total bits contained

◆ bits

size_t* cu_Bitmap::bits

bit storage


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