benilla-re systems structs docs

PassListQuantum

function · ffxeffects · primitive

Address
0x6cca30 · 57 bytes, up to 0x6cca68
Meaning
Returns the growth quantum for a size, 0x40 from 0x40 up, else the largest power of 2 below it
Confidence
verified, proof one
Finding
ffxeffects/objects#pass-list-container

Finding: Pass list container in ffxeffects: pass objects and effects

The pass lists are growable arrays of pass pointers with the tag .PAVPass@FFX@@: 0x6cc940 (ecx the list, an extra count and a flag) grows the capacity to hold count + n, rounded up to a multiple of the quantum; 0x6cca30 sets the quantum (0x40 when the request is 0x40 or more, else the largest power of 2 not above it, at least 1); 0x6cca70 rounds a size up to a multiple; 0x6cca90 reallocates to a capacity, keeping the first min(old, new) pointers.

The derivation is in the doc.

Callers 2

Callees 0

None by a direct call or jump.

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