MCPcopy Create free account
hub / github.com/DFHack/dfhack / luaS_hashlongstr

Function luaS_hashlongstr

depends/lua/src/lstring.c:58–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

mainpositionFunction · 0.85

Calls 1

luaS_hashFunction · 0.85

Tested by

no test coverage detected