* This function examines all our data files and figures out how much * memory needs to be allocated, and the position of each data structure * in that big block. It updates the fields in the layout parameter. */
| 368 | * in that big block. It updates the fields in the layout parameter. |
| 369 | */ |
| 370 | void Storage::PopulateLayout(storage::BaseDataLayout &layout, |
| 371 | const std::vector<std::pair<bool, std::filesystem::path>> &files) |
| 372 | { |
| 373 | for (const auto &file : files) |
| 374 | { |
| 375 | if (std::filesystem::exists(file.second)) |
| 376 | { |
| 377 | populateLayoutFromFile(file.second, layout); |
| 378 | } |
| 379 | } |
| 380 | } |
| 381 | |
| 382 | void Storage::PopulateStaticData(const SharedDataIndex &index) |
| 383 | { |
no test coverage detected