resonance 1.0.1
Loading...
Searching...
No Matches
Zone Struct Reference

One named region the allocator hands blocks out of. More...

#include <zone.h>

Public Attributes

void * mBlock
char * mStart
char * mCur
int mSize
char mName [kZoneNameSize]

Detailed Description

One named region the allocator hands blocks out of.

A zone is a single tagged allocation that is then carved up by a bump pointer. Individual allocations are never released, so a zone is reclaimed either by rewinding the cursor with ZoneResetZone() or by releasing the whole region with ZoneDelete().

mBlock doubles as the slot's occupancy marker. A null mBlock marks a free slot.

Member Data Documentation

◆ mBlock

void* Zone::mBlock

The tagged allocation, null while the slot is free. +0x00

◆ mStart

char* Zone::mStart

mBlock rounded up to the 64-byte alignment. +0x04

◆ mCur

char* Zone::mCur

The bump pointer, rewound to mStart by ZoneResetZone(). +0x08

◆ mSize

int Zone::mSize

The usable size, which is the size ZoneCreate() requested. +0x0c

◆ mName

char Zone::mName[kZoneNameSize]

The zone name, as ZoneCreate() copied it. +0x10


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