benilla-re systems structs docs

CSimpleEditBox::Paste

function · ui · orchestration

Address
0x77e250 · 76 bytes, up to 0x77e29b
Signature
void __thiscall (CSimpleEditBox *this)
Meaning
Inserts the clipboard text one UTF-8 character at a time
Confidence
verified, proof one
Finding
ui/editboxmembers#text-capacity-and-lines

Finding: Text capacity and lines in ui: edit box members

0x77bd90(n) makes room for n + 1 bytes: when that passes the capacity +0x344 it rounds up to a multiple of 32, and reallocates the text +0x32c (bytes) and the classes +0x330 (four bytes each). 0x77bd50(pos) returns the index of the line holding the byte position, walking the line starts from the second one while pos is at or past the next start and the index is below the line count less 2. 0x77e250 pastes: it takes the clipboard text (0x7a77b0), decodes it one UTF-8 character at a time with 0x41aab0 and inserts each with 0x77c200, then frees the text (0x7a78a0).

The derivation is in the doc.

Callers 1

Callees 4

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