benilla-re systems structs docs

ClntObjMgrInsertObject

function · objectlayer · primitive

Address
0x4643b0 · 315 bytes, up to 0x4644ea
Signature
void __thiscall (CGObject_C *this)
Meaning
Links a new object into the live table under its GUID, growing the table when a chain runs long
Confidence
verified, proof two
Finding
objectlayer/manager#adding-an-object

Finding: Adding an object in objectlayer: manager

0x4643b0 links a new object into the live table under its GUID. The first insert makes the table: mask 3 and four buckets, each a list linked through offset 0x1c. The bucket is lo & mask. A credit at +0x10 falls by 3 per insert, to 0; each node in the chosen chain adds 1, and a total over 13 rehashes to 2·mask + 2 buckets and restarts the credit from 0. At mask 0x1fff the table stops growing and the credit is left alone. The object goes onto the end of its bucket and of the iteration list (+0x4 of the table), and +0x18, +0x30 and +0x34 take the GUID.

The derivation is in the doc.

Callers 1

Callees 5

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