MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / LoadString

Function LoadString

third-party/lua-5.1.5/src/lundump.c:76–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76static TString* LoadString(LoadState* S)
77{
78 size_t size;
79 LoadVar(S,size);
80 if (size==0)
81 return NULL;
82 else
83 {
84 char* s=luaZ_openspace(S->L,S->b,size);
85 LoadBlock(S,s,size);
86 return luaS_newlstr(S->L,s,size-1); /* remove trailing '\0' */
87 }
88}
89
90static void LoadCode(LoadState* S, Proto* f)
91{

Callers 3

LoadConstantsFunction · 0.70
LoadDebugFunction · 0.70
LoadFunctionFunction · 0.70

Calls 3

luaZ_openspaceFunction · 0.70
LoadBlockFunction · 0.70
luaS_newlstrFunction · 0.70

Tested by

no test coverage detected