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
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0010 | 4 | void * | m_callback | Holds the function called when the watched bytes change, written by 0x467f00 | verified, proof one | objectlayer/fields#watcher-records |
0x0014 | 4 | uint32_t | m_argument | Holds the argument passed to the callback, written by 0x467f00 | verified, proof one | objectlayer/fields#watcher-records |
0x0018 | 4 | uint32_t | m_countdown | Holds the field steps left before the record is checked, written by 0x465970 and 0x465570 | verified, proof one | objectlayer/fields#when-a-watcher-runs |
0x001c | 4 | uint32_t | m_offset | Holds the watched range's byte offset in the field array, written by 0x467f00 | verified, proof one | objectlayer/fields#watcher-records |
0x0020 | 4 | uint32_t | m_copyOffset | Holds the range's byte offset in the watch copy, written by 0x467f00 | verified, proof one | objectlayer/fields#watcher-records |
0x0024 | 4 | uint32_t | m_length | Holds the watched range's length in bytes, written by 0x467f00 | verified, proof one | objectlayer/fields#watcher-records |
0x0028 | 4 | uint32_t | m_kind | Holds the kind its registration passes, written by 0x467f00 | verified, proof one | objectlayer/fields#watcher-records |
0x002c | 1 | uint8_t | m_busy | Holds a flag the removal reads as the callback running; 0x467f00 clears it | inferred | objectlayer/fields#watcher-records |
0x002d | 1 | uint8_t | m_deletePending | Holds 1 when a removal came during the callback, written by 0x467ff0 and read by 0x465570 | verified, proof one | objectlayer/fields#watcher-records |