MCPcopy Create free account
hub / github.com/Tencent/sluaunreal / luaS_hashlongstr

Function luaS_hashlongstr

Plugins/slua_unreal/External/lua/lstring.cpp:57–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56
57unsigned int luaS_hashlongstr (TString *ts) {
58 lua_assert(ts->tt == LUA_TLNGSTR);
59 if (ts->extra == 0) { /* no hash? */
60 ts->hash = luaS_hash(getstr(ts), ts->u.lnglen, ts->hash);
61 ts->extra = 1; /* now it has its hash */
62 }
63 return ts->hash;
64}
65
66
67/*

Callers 1

mainpositionFunction · 0.85

Calls 1

luaS_hashFunction · 0.85

Tested by

no test coverage detected