benilla-re systems structs docs

RaceClassInfoTableNew

function · spell · primitive

Address
0x6debe0 · 372 bytes, up to 0x6ded53
Signature
void * __thiscall (void *this, uint32_t hash, uint32_t extra, uint32_t flags)
Meaning
Makes a race-class node in slot hash & mask, growing the table when its slot is full, and returns it
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 5

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