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

Method hash

kdevplatform/serialization/tests/test_itemrepository.cpp:39–42  ·  view source on GitHub ↗

Every item has to implement this function, and return a valid hash. Must be exactly the same hash value as ExampleItemRequest::hash() has returned while creating the item.

Source from the content-addressed store, hash-verified

37 //Every item has to implement this function, and return a valid hash.
38 //Must be exactly the same hash value as ExampleItemRequest::hash() has returned while creating the item.
39 unsigned int hash() const
40 {
41 return m_hash;
42 }
43
44 //Every item has to implement this function, and return the complete size this item takes in memory.
45 //Must be exactly the same value as ExampleItemRequest::itemSize() has returned while creating the item.

Callers 3

hashMethod · 0.45
equalsMethod · 0.45
TestItemRepositoryClass · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected