MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / hashStringn

Method hashStringn

engine/source/string/stringTable.cc:66–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

initTolowerTableFunction · 0.70

Tested by

no test coverage detected