ScriptLoadString
function · ui · orchestration
- Address
0x703280· 98 bytes, up to0x7032e1- Signature
int __fastcall (lua_State *L)- Meaning
- Serves loadstring: compiles argument 1 named by argument 2 or itself, returning the function or nil and the message
- Confidence
- verified, proof two
- Finding
- ui/luastate#how-a-chunk-reaches-the-compiler
Finding: How a chunk reaches the compiler in ui: the Lua state, its library and C functions
Every chunk the client compiles passes luaL_loadbuffer, which the client changed: when the
buffer holds at least three bytes and begins EF BB BF, it drops those three before the reader
sees them. Exactly one mark is dropped, at offset 0 only. A precompiled chunk never loads: the
parser always compiles the bytes as source, so one beginning \033Lua is a syntax error. Stock
Lua 5.0's skip of a first line beginning # applies to every chunk. loadstring(s, name) names
the chunk s when name is absent and answers nil and the message on failure.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 5
- lua_insert lua
- lua_pushnil lua
- luaL_checklstring lua
- luaL_optlstring lua
- luaL_loadbuffer lua
Calls and jumps by a bare address, from tables/calls.tsv.