MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / LoadString

Function LoadString

deps/lua/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.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