benilla-re systems structs docs

CVarTableAllocNode

function · cvar · orchestration

Address
0x63e2e0 · 185 bytes, up to 0x63e398
Signature
CVar * __thiscall (void *this, void *bucket, uint32_t extra, uint32_t flags)
Meaning
Allocates a zeroed record and links it first in the bucket
Confidence
verified, proof two
Finding
cvar/containers#records-and-virtual-slots

Finding: Records and virtual slots in cvar: containers

The vtable has four slots. Slot 0 frees a record (0x63e2b0: the CVar destructor, then SMemFree). Slot 1 allocates a record (0x63e2e0: 0xc4 plus the extra size, zero-filled, link words cleared, and linked first in the bucket given). Slot 2 is the deleting destructor (0x63e460) and slot 3 clears the table (0x63e3a0): it unlinks every record from the list and the buckets, sets the mask to −1 and frees the bucket array. Neither frees the records themselves.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.