GrowableArrayChunk
function · glue · primitive
- Address
0x471ec0· 57 bytes, up to0x471ef8- Signature
uint32_t __thiscall (void *this, uint32_t count)- Meaning
- Returns the growth chunk for a count: 64 at or above 64, which it stores at +0x0c, else its top power of two, or 1
- Confidence
- verified, proof one
- Finding
- glue/select#growable-array-helpers
Finding: Growable array helpers in glue: character select
0x471ec0(n) returns a growable array's chunk: 64 for n ≥ 64, also stored at +0x0c; else the
largest power of two not above n, or 1 for 0. 0x471f00(n, chunk) returns n rounded up to a
multiple of the chunk, unsigned. Nine call sites in other systems grow their arrays with them.
0x471e30 and 0x46f550 set a pointer array's capacity to n: reallocate, or allocate, copy
min(n, count) and free. 0x46f510 frees a RealmCategory array's storage, and the array when
bit 0 of its argument is set. 0x46f9e0 builds the 16-byte base, vtable 0x803820 and three
zero words, of the login listener object.
The derivation is in the doc.
Callers 8
- BuildCreateRaceList glue
- LoadChatSettings ui
- HandleBattlefieldListPacket ui
- AddSpellToBook ui
- 0x4b2c50 ui
- ShowItemTextPage ui
- CGPlayer_C::LearnSpell objectlayer
- CGPlayer_C::UnlearnSpell objectlayer
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.