benilla-re systems structs docs

AssignSharedString

function · base · primitive

Address
0x41e3a0 · 131 bytes, up to 0x41e422
Signature
void __thiscall (void *this, const char *text)
Meaning
Points a shared string handle at the pool's counted record of a text, or the null record for NULL
Confidence
verified, proof one
Finding
ui/fontstring#shared-path-strings
Test
ui::assign_shared_string_difftest

Finding: Shared path strings in ui: FontString and Font

A font block's font path and a backdrop's two file names are shared strings: a handle whose +8 points at a counted record of a string pool. 0x41e3a0(handle, text) points it at a new text. A null text takes the null record 0x883e78, whose text pointer is null: its count goes up, the old record is released and the handle takes it. A text of 0x400 bytes or more, or no pool, raises error 0x57 and leaves the handle as it was. Otherwise the pool's record for the text has its count raised, the old record is released, and the handle takes the new one.

The derivation is in the doc.

Callers 14

Callees 4

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