benilla-re systems structs docs

RoundUpToQuantum

function · core · primitive

Address
0x429320 · 31 bytes, up to 0x42933e
Signature
uint32_t __thiscall (void *this, uint32_t size, uint32_t quantum)
Meaning
Rounds a size up to a multiple of a quantum
Confidence
verified, proof two
Finding
core/events#shared-arrays

Finding: Shared arrays in core: events

Growable arrays of dwords from these object files are used across the client. Their capacity rounds up to a multiple of a quantum: the largest power of two not above the size for sizes below 64, else 64, and 1 for size 0.

The derivation is in the doc.

Callers 9

Callees 0

None by a direct call or jump.

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