benilla-re systems structs docs

TSArray::SetCount

function · objectlayer · primitive

Address
0x47fea0 · 49 bytes, up to 0x47fed0
Signature
void __thiscall (TSArray *this, int32_t count)
Meaning
Stores the count and resizes the buffer to four bytes per element
Confidence
verified, proof two
Finding
objectlayer/manager#table-slots-and-sizing

Finding: Table slots and sizing in objectlayer: manager

The table's vtable 0x803600 has four slots. 0x4686c0 destroys an object node: its slot 0 with 0, then its block freed. 0x4686f0 allocates a node of 0x110 bytes plus an extra count, builds the base object and links it at the head. 0x468a60 is the table's deleting destructor and frees the table on bit 0 of its argument. 0x4687f0 clears the table: the mask becomes −1, the buckets are freed and the vtable stays. 0x469d60(n) returns the largest power of two not above n, at least 1, and 0x15 for n of 0x15 or more; 0x469da0(n, g) rounds n up to a multiple of g. 0x47fea0(count) stores the count and resizes the buffer. 0x468c00 reads three floats from a packet.

The derivation is in the doc.

Callers 2

Callees 1

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