MemHeap struct

Fixed-capacity arena.

Callers use arena_create and do not read these fields.

Create one with arena_create. The layout is private.

Public variables

uint8_t* base
size_t mapped
size_t capacity
size_t used
FreeNode* free_list
FreeNode* spare
reused so a free can be recorded if malloc fails