benilla-re systems structs docs

CommandTableRehash

function · console · primitive

Address
0x640780 · 483 bytes, up to 0x640962
Signature
uint32_t __thiscall (void *this, uint32_t bucket)
Meaning
Counts the chain of a bucket and doubles the bucket count when the counter passes 13
Confidence
verified, proof one
Finding
console/commands#growth-twins

Finding: Growth twins in console: commands

The rest of the template: the rehash check 0x640780 (twin of 0x63e9f0), the list constructor 0x640970 (0x63e9c0), the terminator reset 0x6409f0 (0x63ec30), the chain drain 0x6409a0 (0x63ebe0), the count setter 0x640a00 (0x63ec40) and the reallocation 0x640b40 (0x63ee10). 0x640a00 holds a register differently from 0x63ec40 and is otherwise the same. 0x640570 sets a list's link offset: it unlinks every object, empties the terminator and stores the offset. 0x640160 empties the registry at shutdown: it unlinks every record from the list and frees each one still in a bucket through slot 0.

The derivation is in the doc.

Callers 1

Callees 7

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