NameCacheAllocNode
function · dbcache · orchestration
- Address
0x56d910· 372 bytes, up to0x56da83- Signature
void * __thiscall (void *this, uint32_t key, uint32_t arg3, uint32_t arg4)- Meaning
- Inserts a node into the names cache, growing the buckets when its growth counter passes 13
- Confidence
- verified, proof two
- Finding
- dbcache/overview#cache-objects-and-nodes
Finding: Cache objects and nodes in dbcache: overview
A cache object holds: the vtable at +0; the all-nodes list, header +4 (link offset 0xc, head +8, tail +0xc); a growth counter +0x10; a bucket array +0x1c of mask + 1 12-byte list headers; the mask +0x24 (−1 until the first node); the tag +0x28; the file name +0x2c; the query opcode +0x30; a dword +0x34; the owner flag +0x38; the persist flag +0x39. A node holds its key at +0, the hash link +4, the all-nodes link +0xc, the record from +0x18, a key copy +0x4c, a valid byte +0x50, a callback list header +0x54 and a dispatching byte +0x61. The hash is key & mask.
The derivation is in the doc.
Callers 4
- DBCache::NameCache::GetRecord dbcache
- NameCacheStore dbcache
- NameCacheReadFile dbcache
- NameCacheLoad dbcache
Callees 5
Calls and jumps by a bare address, from tables/calls.tsv.