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

Memory block managed by the slab allocator. More...

Collaboration diagram for cu_SlabAllocator_Slab:
Collaboration graph
[legend]

Public Attributes

struct cu_SlabAllocator_Slabnext
 
cu_Bitmap used
 
size_t slabCount
 
size_t freeCount
 
unsigned char data []
 

Detailed Description

Memory block managed by the slab allocator.

Each block maintains its own bitmap sized to slabCount bits that records which slab slots are currently in use.

Member Data Documentation

◆ data

unsigned char cu_SlabAllocator_Slab::data[]

backing storage

◆ freeCount

size_t cu_SlabAllocator_Slab::freeCount

remaining free slots

◆ next

struct cu_SlabAllocator_Slab* cu_SlabAllocator_Slab::next

next slab in the list

◆ slabCount

size_t cu_SlabAllocator_Slab::slabCount

total slab slots

◆ used

cu_Bitmap cu_SlabAllocator_Slab::used

allocation bitmap


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