| 73 | // reads .osrm.mldgr file |
| 74 | template <typename MultiLevelGraphT> |
| 75 | inline void readGraph(const std::filesystem::path &path, |
| 76 | MultiLevelGraphT &graph, |
| 77 | std::uint32_t &connectivity_checksum) |
| 78 | { |
| 79 | static_assert(std::is_same<customizer::MultiLevelEdgeBasedGraphView, MultiLevelGraphT>::value || |
| 80 | std::is_same<customizer::MultiLevelEdgeBasedGraph, MultiLevelGraphT>::value, |
| 81 | ""); |
| 82 | |
| 83 | storage::tar::FileReader reader{path, storage::tar::FileReader::VerifyFingerprint}; |
| 84 | |
| 85 | reader.ReadInto("/mld/connectivity_checksum", connectivity_checksum); |
| 86 | serialization::read(reader, "/mld/multilevelgraph", graph); |
| 87 | } |
| 88 | |
| 89 | // writes .osrm.mldgr file |
| 90 | template <typename MultiLevelGraphT> |