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

Function writeDatasources

include/extractor/files.hpp:179–185  ·  view source on GitHub ↗

writes .osrm.datasource_names

Source from the content-addressed store, hash-verified

177
178// writes .osrm.datasource_names
179inline void writeDatasources(const std::filesystem::path &path, Datasources &sources)
180{
181 const auto fingerprint = storage::tar::FileWriter::GenerateFingerprint;
182 storage::tar::FileWriter writer{path, fingerprint};
183
184 serialization::write(writer, "/common/data_sources_names", sources);
185}
186
187// reads .osrm.geometry
188template <typename SegmentDataT>

Callers 1

saveDatasourcesNamesFunction · 0.85

Calls 1

writeFunction · 0.70

Tested by

no test coverage detected