MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / hashStringn

Method hashStringn

Engine/source/core/stringTable.cpp:68–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68U32 _StringTable::hashStringn(const char* str, S32 len)
69{
70 if (sgInitTable)
71 initTolowerTable();
72
73 U32 ret = 0;
74 char c;
75 while((c = *str++) != 0 && len--) {
76 ret <<= 1;
77 ret ^= sgHashTable[static_cast<U8>(c)];
78 }
79 return ret;
80}
81
82//--------------------------------------
83_StringTable::_StringTable()

Callers

nothing calls this directly

Calls 1

initTolowerTableFunction · 0.85

Tested by

no test coverage detected