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

Method loadData

kdevplatform/language/duchain/topducontextdynamicdata.cpp:425–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423
424template <class Item>
425void TopDUContextDynamicData::DUChainItemStorage<Item>::loadData(QFile* file) const
426{
427 Q_ASSERT(offsets.isEmpty());
428 Q_ASSERT(items.isEmpty());
429
430 uint readValue;
431 file->read(reinterpret_cast<char*>(&readValue), sizeof(uint));
432 offsets.resize(readValue);
433
434 file->read(reinterpret_cast<char*>(offsets.data()), sizeof(ItemDataInfo) * offsets.size());
435
436 //Fill with zeroes for now, will be initialized on-demand
437 items.resize(offsets.size());
438}
439
440template <class Item>
441void TopDUContextDynamicData::DUChainItemStorage<Item>::writeData(QFile* file)

Callers 2

clearItemIndexMethod · 0.80
allocateItemIndexMethod · 0.80

Calls 11

pathForTopContextFunction · 0.85
posMethod · 0.80
isEmptyMethod · 0.45
readMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
ownIndexMethod · 0.45
openMethod · 0.45
closeMethod · 0.45
fileNameMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected