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.
| 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. |