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

Method hash

kdevplatform/serialization/referencecounting.cpp:103–106  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

101 //Every item has to implement this function, and return a valid hash.
102 //Must be exactly the same hash value as ReferenceCountItemRequest::hash() has returned while creating the item.
103 unsigned int hash() const
104 {
105 return KDevHash() << m_id << m_targetId;
106 }
107
108 //Every item has to implement this function, and return the complete size this item takes in memory.
109 //Must be exactly the same value as ReferenceCountItemRequest::itemSize() has returned while creating the item.

Callers

nothing calls this directly

Calls 1

KDevHashClass · 0.85

Tested by

no test coverage detected