UpdateMaskTestBit
function · objectlayer · primitive
- Address
0x465550· 25 bytes, up to0x465568- Signature
uint32_t __fastcall (const uint32_t *mask, uint32_t bit)- Meaning
- Returns mask word bit >> 5 ANDed with 1 << (bit & 31)
- Confidence
- verified, proof one
- Finding
- objectlayer/update#values-block
- Test
objectlayer::updatemask_test_bit_difftest
Finding: Values block in objectlayer: update
A values block is a u8 count n, n u32 mask words, then one u32 for each set mask bit, in
increasing field index. Bit i is word i >> 5, bit i & 31. Only indices below the object's
field count are visited: 6 for an object, 48 item, 122 container, 188 unit, 1282 for the active
player and 486 for another player, 26 game object, 16 dynamic object, 38 corpse. Words past
n count as zero up to 41; a bit set at or above the field count is never read, and its value
stays in the packet, out of step with the reader.
The derivation is in the doc.
Callers 3
- ObjectValuesNotify objectlayer
- SkipValuesBlock objectlayer
- ObjectApplyValues objectlayer
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.