benilla-re systems structs docs

s_cvarTableVtable

global · cvar

Address
0x80e1dc · 16 bytes, up to 0x80e1eb
Type
void *[4]
Meaning
Holds the four slots of the CVar table: free node, allocate node, deleting destructor, clear
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.