#include "memory/allocator.h"
#include <stddef.h>
Go to the source code of this file.
◆ CU_ARENA_CHUNK_SIZE
| #define CU_ARENA_CHUNK_SIZE 4096 |
default size for new chunks
◆ cu_Allocator_ArenaAllocator()
Create an arena allocator using the given configuration.
- Parameters
-
| arena | Target arena allocator instance. |
| config | Initialization settings. |
- Returns
- A cu_Allocator value using the arena.
◆ cu_ArenaAllocator_destroy()
Destroy an arena allocator and free all chunks.
- Parameters
-
| arena | Pointer to the arena to destroy. |