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

Function LoadString

third-party/lua-5.2.4/src/lundump.c:72–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

LoadConstantsFunction · 0.70
LoadDebugFunction · 0.70

Calls 3

luaZ_openspaceFunction · 0.70
LoadBlockFunction · 0.70
luaS_newlstrFunction · 0.70

Tested by

no test coverage detected