benilla-re systems structs docs

FireWatchers

function · objectlayer · primitive

Address
0x465570 · 278 bytes, up to 0x465685
Signature
void __fastcall (void *pending, CGObject_C *object, uint32_t guidLow, uint32_t guidHigh, uint32_t section)
Meaning
Calls each pending watcher whose range differs from the copy, then frees those removed meanwhile
Confidence
verified, proof one
Finding
objectlayer/fields#when-a-watcher-runs

Finding: When a watcher runs in objectlayer: fields

During a values block's create pass, before writing, the client copies the current bytes of every watcher covering a sent field into the copy array. During the notify pass it walks the fields again; for each sent field (every field, when the create notify asks for it, update) each watcher covering it whose watched bytes now differ from the copy is called once, with ecx the range's byte offset in its section, edx its length, and on the stack the GUID low and high dwords, a pointer to the old bytes in the copy, and the registered argument. Unchanged ranges call nothing.

The derivation is in the doc.

Callers 1

Callees 3

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