benilla-re systems structs docs

ItemCacheReceive

function · dbcache · primitive

Address
0x55bdb0 · 471 bytes, up to 0x55bf86
Signature
void __thiscall (void *this, CDataStore *store, bool single)
Meaning
Reads the item records of a response and runs each key's callbacks in the order kept, status 1 or 0 for a refusal
Confidence
verified, proof two
Finding
dbcache/callbacks#callback-order
Test
dbcache::callback_order_difftest

Finding: Callback order in dbcache: callbacks

A lookup links the callback it keeps at the head of its key's list, and a response runs the list from the tail along the previous links: callbacks run in the order they were kept. 0x55ba30 allocates a 0x20-byte DBCACHECALLBACK, links it with 0x56d0e0(node, 2, 0) and fills in the function (+8), the caller's id (+0x10) and the data (+0x18). For a key whose node exists with no record, a set dedupe flag keeps no second callback with the same function and data. A response calls function(key, &id, data, status) with status 1 after decoding and 0 for a refusal, then frees the list. All 26 link sites of the thirteen caches use mode 2 and no reference.

The derivation is in the doc.

Callers 2

Callees 8

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