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

Function writeRamIndex

include/extractor/files.hpp:542–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

540
541template <typename RTreeT>
542void writeRamIndex(const std::filesystem::path &path, const RTreeT &rtree)
543{
544 const auto fingerprint = storage::tar::FileWriter::GenerateFingerprint;
545 storage::tar::FileWriter writer{path, fingerprint};
546
547 util::serialization::write(writer, "/common/rtree", rtree);
548}
549
550template <typename RTreeT> void readRamIndex(const std::filesystem::path &path, RTreeT &rtree)
551{

Callers 1

BuildRTreeMethod · 0.85

Calls 1

writeFunction · 0.70

Tested by

no test coverage detected