MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / LoadString

Function LoadString

Source/Misc/lua/src/lua.c:9979–9991  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9977}
9978
9979static TString* LoadString(LoadState* S)
9980{
9981size_t size;
9982LoadVar(S,size);
9983if (size==0)
9984return NULL;
9985else
9986{
9987char* s=luaZ_openspace(S->L,S->b,size);
9988LoadBlock(S,s,size);
9989return luaS_newlstr(S->L,s,size-1); /* remove trailing '\0' */
9990}
9991}
9992
9993static void LoadCode(LoadState* S, Proto* f)
9994{

Callers 3

LoadConstantsFunction · 0.85
LoadDebugFunction · 0.85
LoadFunctionFunction · 0.85

Calls 3

luaZ_openspaceFunction · 0.85
LoadBlockFunction · 0.85
luaS_newlstrFunction · 0.85

Tested by

no test coverage detected