benilla-re systems structs docs

CMirrorHandler

struct · objectlayer · 48 bytes

Meaning
Holds one field watcher: the watched byte range, its copy offset, the callback and its argument
Confidence
verified, proof one
Finding
objectlayer/fields#watcher-records

Finding: Watcher records in objectlayer: fields

A watcher is a 0x30-byte CMirrorHandler: the byte offset of its range in the field array (+0x1c), its offset in the copy (+0x20), its byte length (+0x24), the callback (+0x10) and its argument (+0x14), a kind (+0x28), a busy flag (+0x2c) and a delete-pending flag (+0x2d). Removing a watcher whose callback is running only marks it; the notify pass frees it when the callback returns.

The derivation is in the doc.

Fields 9

offsetsizetypenamemeaningconfidencefinding
0x00104void *m_callbackHolds the function called when the watched bytes change, written by 0x467f00verified, proof oneobjectlayer/fields#watcher-records
0x00144uint32_tm_argumentHolds the argument passed to the callback, written by 0x467f00verified, proof oneobjectlayer/fields#watcher-records
0x00184uint32_tm_countdownHolds the field steps left before the record is checked, written by 0x465970 and 0x465570verified, proof oneobjectlayer/fields#when-a-watcher-runs
0x001c4uint32_tm_offsetHolds the watched range's byte offset in the field array, written by 0x467f00verified, proof oneobjectlayer/fields#watcher-records
0x00204uint32_tm_copyOffsetHolds the range's byte offset in the watch copy, written by 0x467f00verified, proof oneobjectlayer/fields#watcher-records
0x00244uint32_tm_lengthHolds the watched range's length in bytes, written by 0x467f00verified, proof oneobjectlayer/fields#watcher-records
0x00284uint32_tm_kindHolds the kind its registration passes, written by 0x467f00verified, proof oneobjectlayer/fields#watcher-records
0x002c1uint8_tm_busyHolds a flag the removal reads as the callback running; 0x467f00 clears itinferredobjectlayer/fields#watcher-records
0x002d1uint8_tm_deletePendingHolds 1 when a removal came during the callback, written by 0x467ff0 and read by 0x465570verified, proof oneobjectlayer/fields#watcher-records