Clean up lpool

This commit is contained in:
Nils O. Selåsdal
2026-05-13 00:11:49 +02:00
parent c89b4d1d3c
commit d04b151279
3 changed files with 46 additions and 28 deletions
+2 -2
View File
@@ -31,9 +31,9 @@ typedef struct LPool LPool;
struct LPool {
LPoolBlock *free_list; // free list
uint8_t *start; // start of user buffer
uint8_t *end; // one past end of user buffer
uint32_t block_size; // aligned size of each block
uint32_t capacity; // number of blocks
uint32_t capacity; // total number of blocks
uint32_t used; // used number of blocks
uint32_t align; // alignment
};