DwordArrayPush
function · loadingscreen · primitive
- Address
0x408a40· 256 bytes, up to0x408b3f- Signature
uint32_t * __thiscall (void *this, const uint32_t *value)- Meaning
- Appends a dword to a growable array, growing it, and returns its slot
- Confidence
- verified, proof one
- Finding
- loadingscreen/overview#growable-arrays
Finding: Growable arrays in loadingscreen: overview
The route vertices, the taxi paths, their leg lists and the pairs use one growable array: a
capacity, a count, a buffer and a granularity. A grow to count + n past the capacity, with its
second argument nonzero, rounds the request up to a multiple of the granularity. A granularity of
0 becomes the threshold (10 for vertices, 64 for the 4-byte lists, 16 for the outer array, 32 for
pairs) and is stored when the request reaches it; below it the largest power of two not above the
request serves that grow only.
The derivation is in the doc.
Callers 1
- BuildTaxiLegTable loadingscreen
Callees 3
- SMemAlloc storm
- SMemReAlloc storm
- SMemFree storm
Calls and jumps by a bare address, from tables/calls.tsv.