benilla-re systems structs docs

LinkLightningObject

function · spell · orchestration

Address
0x6ed360 · 171 bytes, up to 0x6ed40a
Signature
void __thiscall (uint32_t *this, LightningObject *node, uint32_t where, LightningObject *relative)
Meaning
Unlinks a chain and links it after a node for where 1, else before it; null means the terminator
Confidence
verified, proof one
Finding
spell/visuals#list-and-array-helpers

Finding: List and array helpers in spell: visuals

A link is two dwords at the node's start: the previous link's address, and the next node or the terminator's address with bit 0 set. Unlinking repairs both neighbours and zeroes the pair. A chain's GUID and hop arrays hold capacity, count, data and a growth quantum. Growing to m with rounding rounds m up to the quantum: the stored one, or for 0 the largest power of two not above m when m is below 32 (16 for hops), else 32 (16), which is stored. The data is reallocated in place, or allocated, copied and the old block freed.

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.