MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / LoadString

Function LoadString

ThirdParty/lua/lua/lundump.c:89–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87
88
89static TString *LoadString (LoadState *S) {
90 size_t size = LoadByte(S);
91 if (size == 0xFF)
92 LoadVar(S, size);
93 if (size == 0)
94 return NULL;
95 else {
96 char *s = luaZ_openspace(S->L, S->b, --size);
97 LoadVector(S, s, size);
98 return luaS_newlstr(S->L, s, size);
99 }
100}
101
102
103static void LoadCode (LoadState *S, Proto *f) {

Callers 3

LoadConstantsFunction · 0.85
LoadDebugFunction · 0.85
LoadFunctionFunction · 0.85

Calls 3

LoadByteFunction · 0.85
luaZ_openspaceFunction · 0.85
luaS_newlstrFunction · 0.85

Tested by

no test coverage detected