LinkDbCacheCallback
function · dbcache · primitive
- Address
0x56d0e0· 171 bytes, up to0x56d18a- Signature
void __thiscall (void *this, DBCACHECALLBACK *node, uint32_t mode, DBCACHECALLBACK *reference)- Meaning
- Unlinks a callback, then links it before a reference or at the tail (mode 1), after it or at the head (mode 2)
- Confidence
- verified, proof two
- Finding
- dbcache/callbacks#callback-list-links
- Test
dbcache::callback_list_link_difftest
Finding: Callback list links in dbcache: callbacks
0x56d0e0(node, mode, reference) links a callback into the list in ecx, first unlinking the node if it is linked. Mode 1 links it directly before reference in head-to-tail order, any other mode directly after it; a reference of 0 stands for the terminator, so mode 1 makes the node the tail and mode 2 the head. A link is two dwords at offset 0 of the node: the next link's address, then the previous member's, which at the head is the terminator's address with bit 0 set. Lists are ui/draworder's; an item node's header is at +0x1f4 and starts empty.
The derivation is in the doc.
Callers 13
- CreatureCacheGetRecord dbcache
- GameObjectCacheGetRecord dbcache
- ItemNameCacheGetRecord dbcache
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- NpcCacheGetRecord dbcache
- DBCache::NameCache::GetRecord dbcache
- DBCache::GuildGetRecord dbcache
- QuestCacheGetRecord dbcache
- PageTextCacheGetRecord dbcache
- PetNameCacheGetRecord dbcache
- PetitionCacheGetRecord dbcache
- ItemTextCacheGetRecord dbcache
- 0x56b430 dbcache
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.