benilla-re systems structs docs

CSimpleEditBox::LineOfIndex

function · ui · primitive

Address
0x77bd50 · 55 bytes, up to 0x77bd86
Signature
uint32_t __thiscall (CSimpleEditBox *this, uint32_t index)
Meaning
Returns the line that holds a byte position, walking the line starts
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 2

Callees 0

None by a direct call or jump.

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