benilla-re systems structs docs

PairArrayAppend

function · loadingscreen · primitive

Address
0x408d00 · 128 bytes, up to 0x408d7f
Signature
void * __thiscall (void *this)
Meaning
Appends a zeroed pair to a growable array, growing it, and returns the pair
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 1

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