MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / writeNBGMapping

Function writeNBGMapping

include/extractor/files.hpp:161–167  ·  view source on GitHub ↗

writes .osrm.cnbg_to_ebg

Source from the content-addressed store, hash-verified

159
160// writes .osrm.cnbg_to_ebg
161inline void writeNBGMapping(const std::filesystem::path &path, const std::vector<NBGToEBG> &mapping)
162{
163 const auto fingerprint = storage::tar::FileWriter::GenerateFingerprint;
164 storage::tar::FileWriter writer{path, fingerprint};
165
166 storage::serialization::write(writer, "/common/cnbg_to_ebg", mapping);
167}
168
169// reads .osrm.datasource_names
170inline void readDatasources(const std::filesystem::path &path, Datasources &sources)

Callers 2

RunMethod · 0.85
RunMethod · 0.85

Calls 1

writeFunction · 0.70

Tested by

no test coverage detected