ReserveRealmCategoryArray
function · glue · orchestration
- Address
0x46f550· 133 bytes, up to0x46f5d4- Signature
void __thiscall (void *this, uint32_t count)- Meaning
- Sets a RealmCategory pointer array's capacity, reallocating or copying its entries to new storage
- 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 1
- BuildRealmCategories glue
Callees 3
- SMemAlloc storm
- SMemReAlloc storm
- SMemFree storm
Calls and jumps by a bare address, from tables/calls.tsv.