benilla-re systems structs docs

ResizeSkillCostsInfoTable

function · spell · orchestration

Address
0x6df860 · 491 bytes, up to 0x6dfa4a
Signature
void __thiscall (void *this, uint32_t slots)
Meaning
Rehashes every skill-cost node into a new number of slots, keeping the order of equal hashes
Confidence
verified, proof one
Finding
spell/tables#insertion-and-growth

Finding: Insertion and growth in spell: tables

Adding a node never searches for an equal key. A table with mask -1 first gets four slots (mask 3). While the mask is below 0x1fff, the fullness counter drops by 3 (floor 0), then rises by one per node already in the target slot hash & mask; once it passes 13 the table resizes to 2·(mask + 1) slots and the counter resets. Vtable slot 1 makes the node at the slot's head, and the node joins the tail of the node list. A resize moves the nodes, slot by slot from each head, into a temporary list and appends each to the tail of its new slot, so equal hashes keep their order. Callers store the hash.

The derivation is in the doc.

Callers 1

Callees 7

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