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

Method hash

kdevplatform/serialization/stringrepository.h:28–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 return sizeof(StringData) + length;
27 }
28 unsigned int hash() const
29 {
30 IndexedString::RunningHash running;
31 const char* str = reinterpret_cast<const char*>(this) + sizeof(StringData);
32 for (int a = length - 1; a >= 0; --a) {
33 running.append(*str);
34 ++str;
35 }
36
37 return running.hash;
38 }
39};
40
41struct StringRepositoryItemRequest

Callers 8

findIndexMethod · 0.45
indexMethod · 0.45
hasClashingItemMethod · 0.45
finalCleanupMethod · 0.45
indexMethod · 0.45
findIndexMethod · 0.45
deleteItemMethod · 0.45
itemReachableMethod · 0.45

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected