| 423 | |
| 424 | template <class Item> |
| 425 | void 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 | |
| 440 | template <class Item> |
| 441 | void TopDUContextDynamicData::DUChainItemStorage<Item>::writeData(QFile* file) |