benilla-re systems structs docs

StormHeapAlloc

function · storm · boundary

Address
0x645640 · 141 bytes, up to 0x6456cc
Signature
void * __thiscall (void *this, uint32_t size, const char *name, uint32_t line)
Meaning
Takes a block of the power-of-two class that holds size + 8 from the allocator and returns it past its header
Confidence
verified, proof one
Finding
core/threads#allocator-and-error-calls

Finding: Allocator and error calls in core: process entry and threads

SMemAlloc(size, name, line, flags) (0x6462e0) asks the allocator object for size bytes tagged with a name and line, and zero-fills them when bit 3 of the flags is set. SMemFree(pointer, name, line, flags) (0x646430) frees through the allocator and returns 1. SStrPrintf(buffer, size, format, ...) (0x64a7f0) raises error 0x57 and returns 0 for a null buffer or format, else formats through 0x64a820. SErrSetLastError(code) (0x64e850) stores the code in a global and calls SetLastError. 0x658890(mode) and 0x658b50(mode) enter and leave the read-write lock at ecx through 0x6588a0 and 0x658b60 with the mode in edx.

The derivation is in the doc.

Callers 2

Callees 2

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