#include <string.h>
#include "defs.h"
#include "memory.h"
Go to the source code of this file.
|
| struct | arena_t |
| | The Arena allocator is a single continous block of memory. More...
|
| |
|
| static arena_t | ARENA_GLOBAL |
| | The single global arena. Declared here instead of specific files to prevent aliasing issues.
|
| |
◆ ARENA_DEFAULT_SIZE
| #define ARENA_DEFAULT_SIZE 0x10000 |
◆ arena_alloc()
| static void * arena_alloc |
( |
arena_t * |
arena, |
|
|
sz |
size |
|
) |
| |
|
static |
Allocate size bytes data inside the arena. O(1)
◆ arena_init_default()
| static void arena_init_default |
( |
arena_t * |
arena | ) |
|
|
static |
◆ ARENA_GLOBAL
The single global arena. Declared here instead of specific files to prevent aliasing issues.