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

Method hash

kdevplatform/serialization/indexedstring.cpp:44–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 }
43
44 uint hash() const
45 {
46 IndexedString::RunningHash running;
47 const char* str = reinterpret_cast<const char*>(this) + sizeof(IndexedStringData);
48 for (int a = length - 1; a >= 0; --a) {
49 running.append(*str);
50 ++str;
51 }
52
53 return running.hash;
54 }
55};
56
57struct IndexedStringRepositoryItemRequest

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected