DBCache::NameCache::GetRecord
function · dbcache · orchestration
- Address
0x55f080· 620 bytes, up to0x55f2eb- Signature
void * __thiscall (DBCache::NameCache *this, uint64_t guid, uint64_t *owner, void *callback, void *data, bool dedupe)- Meaning
- Returns a name record for a guid, or keeps a callback and sends the name query on a miss
- Confidence
- verified, proof two
- Name from
- the community database (idb)
- Finding
- dbcache/overview#asking-for-a-record
Finding: Asking for a record in dbcache: overview
A lookup takes a key, a pointer to the caller's 64-bit id, a callback, its data and a flag. A zero key returns null. A node that is valid
returns its record, with nothing touched. Otherwise, with no callback it returns null and sends nothing. With one, a node is made if absent, the callback is added unless the flag is set and an
equal one (same function and data) is there, and for a new node the query is sent: the cache's opcode, the key and, when the owner flag +0x38 is set, the caller's id. A
pending node leaves the query to the first caller. Eleven lookups are copies of one body; the table gives their node offsets.
| lookup | cache | owner flag | key copy | valid byte | callback list |
|---|---|---|---|---|---|
creature 0x556aa0 | 0xc0e354 | 1 | +0x4c | +0x50 | +0x54 |
game object 0x558560 | 0xc0e318 | 1 | +0x94 | +0x98 | +0x9c |
item name 0x559fe0 | 0xc0e2dc | 1 | +0x1c | +0x20 | +0x24 |
item 0x55ba30 | 0xc0e2a0 | 1 | +0x1ec | +0x1f0 | +0x1f4 |
NPC text 0x55d530 | 0xc0e264 | 1 | +0x158 | +0x15c | +0x160 |
guild 0x560e30 | 0xc0e1ec | 0 | +0x310 | +0x314 | +0x318 |
quest 0x562a40 | 0xc0e1b0 | 0 | +0x18f4 | +0x18f8 | +0x18fc |
page text 0x564730 | 0xc0e174 | 1 | +0x41c | +0x420 | +0x424 |
pet name 0x566240 | 0xc0e138 | 1 | +0x70 | +0x74 | +0x78 |
petition 0x567d60 | 0xc0e0fc | 1 | +0x13e0 | +0x13e4 | +0x13e8 |
item text 0x569980 | 0xc0e0c0 | 1 | +0x1f58 | +0x1f5c | +0x1f60 |
The derivation is in the doc.
Callers 82
- Script::GetSummonConfirmSummoner ui
- CGGameUI::ClosestObjectMatch ui
- ComposeTextEmote ui
- ChannelNotifyHandler ui
- ClientChannelListHandler ui
- PrintChannelMemberList ui
- ChatNameArrivedCallback ui
- TextEmoteNameArrived ui
- ShowPendingChatLines ui
- ClientChatHandler ui
- ClientTextEmoteHandler ui
- ShowChannelModeChange ui
- RebuildBattlefieldScores ui
- CompareBattlefieldScores ui
- HandlePvPLogDataPacket ui
- HandleBattlegroundPlayerJoinedOrLeftPacket ui
- OnBattlefieldNameJoined ui
- OnBattlefieldNameLeft ui
- Script::GetBattlefieldScore ui
- Script::GetBattlefieldPosition ui
- Script::GetInboxHeaderInfo ui
- Script::GetInboxInvoiceInfo ui
- FillOwnRaidRow ui
- HandleRaidReadyCheckPacket ui
- RebuildRaidRoster ui
- OnRaidMemberNameAdded ui
- OnRaidMemberNameRemoved ui
- ShowReadyCheckSummary ui
- Script::GetRaidRosterInfo ui
- Script::SetRaidSubgroup ui
- Script::SwapRaidSubgroup ui
- Script::GetMasterLootCandidate ui
- HandleMeetingstoneStatusPacket ui
- OnMeetingStoneMemberName ui
- CompareAuctionRows ui
- Script::GetAuctionItemInfo ui
- Script::ItemTextGetCreator ui
- AddPartyMember ui
- SetGroupLootSettings ui
- CGMinimapFrame::OnMouseMove ui
- StorePetitionSigners ui
- AddPetitionSigner ui
- Script::GetPetitionInfo ui
- Script::GetPetitionNameInfo ui
- HandleQuestConfirmRequest ui
- ExpandServerText ui
- ExpandTargetTokens ui
- Script::UnitFactionGroup ui
- Script::UnitName ui
- Script::UnitSex ui
- Script::UnitRace ui
- Script::UnitClass ui
- Script::SetPortraitTexture ui
- CGTooltip::BuildUnit ui
- CGTooltip::BuildCorpse ui
- CGTooltip::BuildItem ui
- FriendList::HandleStatus net
- OnFriendNameResolved net
- OnIgnoreNameResolved net
- Script::GetIgnoreName net
- FriendList::ReadFriendList net
- CompareIgnoredByName net
- FriendList::AddOrDelIgnore net
- FriendList::AddIgnore net
- FriendList::DelIgnore net
- FriendList::ReadIgnoreList net
- FriendList::AddIgnoreSlot net
- TradeInitiate objectlayer
- TradeInitiateNameCallback objectlayer
- HandlePlayerNotice objectlayer
- OnRollerName objectlayer
- ReadGroupList objectlayer
- ReadResurrectRequest objectlayer
- OnResurrecterName objectlayer
- ReadPetitionDecline objectlayer
- CGUnit_C::GetUnitName objectlayer
- AskWinnerName objectlayer
- OnWinnerNameReady objectlayer
- AskRollerName objectlayer
- OnRollerNameReady objectlayer
- GetCombatLogName objectlayer
- PlacePartyBlips minimap
Callees 8
- CDataStore::PutUInt32 base
- CDataStore::PutGuid base
- 0x55ec50 dbcache
- ClearDbCacheLink dbcache
- LinkDbCacheCallback dbcache
- NameCacheAllocNode dbcache
- ClientServices::Send net
- SMemAlloc storm
Calls and jumps by a bare address, from tables/calls.tsv.