ClntObjMgrAllocObject
function · objectlayer · primitive
- Address
0x466e00· 430 bytes, up to0x466fad- Signature
CGObject_C * __fastcall (uint32_t type, uint32_t unused, uint32_t guidLow, uint32_t guidHigh)- Meaning
- Allocates an object from its type's pool after destroying the oldest reusable one, or the active player on the heap
- Confidence
- verified, proof one
- Finding
- objectlayer/manager#allocating-and-reusing
Finding: Allocating and reusing in objectlayer: manager
A new object of type 1 to 7 comes from its type's pool. Before allocating, the manager takes the
oldest object off that type's reuse list, if any, unlinks it from the released table, runs its
vtable slot 0 with 0 and returns it to the pool; so a released object survives until the next
object of its type is created or the destroy message names it. The active player is allocated
from the heap: its 0x3178-byte members and fields, 4 bytes per watched field, and a 0x2550-byte
block it points to at +0x1c68.
The derivation is in the doc.
Callers 1
- ObjectCreateBlock objectlayer
Callees 9
- ObjectAllocNew objectalloc
- ObjectFree objectalloc
- ObjectAllocLock objectalloc
- ActivePlayerExtraSize objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- GetObjectLink objectlayer
- ActivePlayerWatchedCount objectlayer
- SMemAlloc storm
- SMemFree storm
Calls and jumps by a bare address, from tables/calls.tsv.