benilla-re systems structs docs

GetItemCooldownNodeLink

function · spell · orchestration

Address
0x6eae30 · 25 bytes, up to 0x6eae48
Signature
void * __thiscall (void *this, void *node)
Meaning
Returns a node's link in a list, or the list's end link for a null node
Confidence
verified, proof one
Finding
spell/cooldowns#item-cooldown-table-internals

Finding: Item cooldown table internals in spell: cooldowns

The table's lists are Storm's: a link is a previous-link pointer and a next-node pointer, bit 0 marking the end link. A resize to n slots (0x6eaf90) moves every node to a scratch list, sets the array's count to n, resets every slot list to link offset 4, sets the mask to n − 1 and relinks each node at its slot's tail. Growing the array rounds its capacity up to a multiple of a quantum: the stored one, or for a size from 21 up the stored 21, else the largest power of two not above the size; then it reallocates in place, or allocates, rebuilds the lists empty and frees the old array.

The derivation is in the doc.

Callers 6

Callees 0

None by a direct call or jump.

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