MCPcopy Create free account
hub / github.com/KDE/kdevelop / hashString

Method hashString

kdevplatform/serialization/indexedstring.cpp:397–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397uint IndexedString::hashString(const char* str, unsigned short length)
398{
399 RunningHash running;
400 for (int a = length - 1; a >= 0; --a) {
401 running.append(*str);
402 ++str;
403 }
404
405 return running.hash;
406}
407
408uint IndexedString::indexForString(const char* str, short unsigned length, uint hash)
409{

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected