benilla-re systems structs docs

ResizePairArray

function · loadingscreen · orchestration

Address
0x408f30 · 144 bytes, up to 0x408fbf
Signature
void __thiscall (void *this, uint32_t capacity)
Meaning
Reallocates a pair array's buffer to a capacity, copying the pairs that fit
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

Callees 3

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