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

Function writeCompressedNodeBasedGraph

include/extractor/files.hpp:559–565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557
558template <typename EdgeListT>
559void writeCompressedNodeBasedGraph(const std::filesystem::path &path, const EdgeListT &edge_list)
560{
561 const auto fingerprint = storage::tar::FileWriter::GenerateFingerprint;
562 storage::tar::FileWriter writer{path, fingerprint};
563
564 storage::serialization::write(writer, "/extractor/cnbg", edge_list);
565}
566
567template <typename EdgeListT>
568void readCompressedNodeBasedGraph(const std::filesystem::path &path, EdgeListT &edge_list)

Callers 1

runMethod · 0.85

Calls 1

writeFunction · 0.70

Tested by

no test coverage detected