benilla-re systems structs docs

ReserveRaceClassInfoSlots

function · spell · primitive

Address
0x6e00a0 · 319 bytes, up to 0x6e01de
Signature
void __thiscall (void *this, uint32_t extra, uint32_t round)
Meaning
Grows a race-class slot array's capacity to hold extra more lists, optionally rounded by its step
Confidence
verified, proof one
Finding
spell/tables#slot-array-growth

Finding: Slot array growth in spell: tables

The slot array grows by a step: unless set, the step is the largest power of two not above the wanted count (1 for 0) when it is below 21, and otherwise becomes 21 and stays; the capacity rounds up to a multiple of it. Setting a larger count reallocates when it exceeds the capacity and inits the new lists; a smaller count destroys the lists past it. Reallocation asks 0x646320 with flags 0x10; when that returns null it allocates anew, gives each surviving list an empty copy with its link offset, unlinks the old members, and frees the old block. Members do not carry over; every caller empties the slots first.

The derivation is in the doc.

Callers 1

Callees 6

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