benilla-re systems structs docs

InlineDataStoreGrow

function · net · primitive

Address
0x5bc6c0 · 225 bytes, up to 0x5bc7a0
Signature
uint32_t __thiscall (CDataStore *this, uint32_t pos, uint32_t count, void **data, uint32_t *base, uint32_t *capacity, const char *file, int line)
Meaning
Grows a data store to pos + count bytes, moving off the inline buffer to the heap on the first growth; returns 1
Confidence
verified, proof one
Finding
net/messages#data-store-writes
Test
net::datastore_inline

Finding: Data store writes in net: messages

Each write of n bytes at a position (the size for Put, an argument for Set) asks vtable slot 3 to move the window when the position is below the window or its end past it, ignores the answer, stores, and a Put adds n to the size. The plain store's slot 3 (0x417c30) makes the buffer the end rounded up to 256 bytes; the network store's (0x5bc6c0) starts in 1,024 bytes of its own at +0x18 and grows to exactly the end. PutArray writes chunks of at most the window. PutFloat passes the value through fld and fstp, so a signalling NaN is stored quiet. A null source with a nonzero count sets error 87.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

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