ReserveItemCooldownSlots
function · spell · primitive
- Address
0x6eb400· 319 bytes, up to0x6eb53e- Signature
void __thiscall (void *this, uint32_t extra, uint32_t round)- Meaning
- Grows the slot array's capacity to its count plus extra, rounded to a quantum when asked
- 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 1
- ResizeItemCooldownTable spell
Callees 6
- SMemAlloc storm
- SMemReAlloc storm
- SMemFree storm
- DestroyItemCooldownSlotList spell
- UnlinkItemCooldownLink spell
- UnlinkAllItemCooldownNodes spell
Calls and jumps by a bare address, from tables/calls.tsv.