MCPcopy Create free account
hub / github.com/PlutoLang/Pluto / plutoS_commit

Function plutoS_commit

src/lstring.cpp:374–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372
373
374void plutoS_commit (lua_State *L, char *prealloc, size_t l) {
375 if (l <= LUAI_MAXSHORTLEN) {
376 TString *ts;
377 lua_lock(L);
378 ts = internshrstr(L, prealloc, l);
379 setsvalue2s(L, L->top.p, ts);
380 api_incr_top(L);
381 luaC_checkGC(L);
382 lua_unlock(L);
383 }
384}

Callers 7

str_tohexFunction · 0.85
l_hashwithdigestFunction · 0.85
l_hmac_auxFunction · 0.85
encodeFunction · 0.85
decodeFunction · 0.85
urlEncodeFunction · 0.85
urlDecodeFunction · 0.85

Calls 1

internshrstrFunction · 0.85

Tested by

no test coverage detected