benilla-re systems structs docs

ScriptUnpack

function · ui · primitive

Address
0x7030a0 · 78 bytes, up to 0x7030ed
Signature
int __fastcall (lua_State *L)
Meaning
Serves unpack: pushes the elements 1 to n of a table and returns n
Confidence
verified, proof two
Finding
ui/luabase#iteration

Finding: Iteration in ui: the Lua base library

next(t [, key]) requires a table and answers the key and value after key, or nil. pairs(t) requires a table and returns the global next, the table and nil. ipairs(t [, i]) called with one argument answers (ipairs, t, 0); with an index it adds 1.0, pushes the new index and t[__ftol(index)], and returns both when the element is not nil, nothing otherwise. unpack(t) requires a table, takes its length from 0x6f5050, raises table too big to unpack when the stack cannot grow by that count and pushes t[1] to t[n].

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 4

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