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

Method itemSize

kdevplatform/serialization/tests/test_itemrepository.cpp:46–49  ·  view source on GitHub ↗

Every item has to implement this function, and return the complete size this item takes in memory. Must be exactly the same value as ExampleItemRequest::itemSize() has returned while creating the item.

Source from the content-addressed store, hash-verified

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.
46 unsigned int itemSize() const
47 {
48 return sizeof(TestItem) + m_dataSize;
49 }
50
51 bool equals(const TestItem* rhs) const
52 {

Callers 4

equalsMethod · 0.45
itemSizeMethod · 0.45
createItemMethod · 0.45
TestItemRepositoryClass · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected