benilla-re systems structs docs

BatchInit

function · ui · orchestration

Address
0x772e80 · 55 bytes, up to 0x772eb6
Signature
void __thiscall (void *this)
Meaning
Zeroes a layer batch, empties its quad array and callback list and stores its vtable
Confidence
verified, proof two
Finding
ui/draworder#batch-construction

Finding: Batch construction in ui: draw order

A layer batch is 0x30 bytes. 0x772e80 constructs one: it zeroes the counts and the array, makes +0x20 an empty callback list (its head points at itself, +0x24 holds that address tagged with bit 0) and stores the vtable 0x81c7ac, whose slot 0 is 0x772ec0. The quad array is four dwords at +0x8: capacity, count +0xc, records +0x10 and a growth step +0x14. 0x773280(extra, round) grows it to hold extra more records, and 0x772ef0 destroys a batch: it empties it with 0x7731d0, unlinks the callback list head and frees the records.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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