MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / luaS_hashlongstr

Function luaS_hashlongstr

3rd/lua-5.4.3/src/lstring.c:51–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50
51unsigned int luaS_hashlongstr (TString *ts) {
52 lua_assert(ts->tt == LUA_VLNGSTR);
53 if (ts->extra == 0) { /* no hash? */
54 size_t len = ts->u.lnglen;
55 ts->hash = luaS_hash(getstr(ts), len, ts->hash);
56 ts->extra = 1; /* now it has its hash */
57 }
58 return ts->hash;
59}
60
61
62static void tablerehash (TString **vect, int osize, int nsize) {

Callers 1

mainpositionFunction · 0.85

Calls 1

luaS_hashFunction · 0.85

Tested by

no test coverage detected