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

Function luaS_hashlongstr

src/lstring.cpp:62–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60
61
62unsigned luaS_hashlongstr (TString *ts) {
63 lua_assert(ts->tt == LUA_VLNGSTR);
64 if (ts->extra == 0) { /* no hash? */
65 size_t len = ts->u.lnglen;
66 ts->hash = luaS_hash(getlngstr(ts), len, ts->hash);
67 ts->extra = 1; /* now it has its hash */
68 }
69 return ts->hash;
70}
71
72
73static void tablerehash (TString **vect, int osize, int nsize) {

Callers 1

mainpositionTVFunction · 0.85

Calls 1

luaS_hashFunction · 0.85

Tested by

no test coverage detected