benilla-re systems structs docs

NextSpellHistoryLink

function · spell · orchestration

Address
0x6ea950 · 41 bytes, up to 0x6ea978
Signature
void * __thiscall (void *this, int32_t linkOffset)
Meaning
Returns the link after a spell-history link, deriving the link offset when it is negative
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 2

Callees 0

None by a direct call or jump.

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