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

Function writeTimestamp

include/extractor/files.hpp:316–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314// writes .osrm.timestamp
315template <typename TimestampDataT>
316inline void writeTimestamp(const std::filesystem::path &path, const TimestampDataT &timestamp)
317{
318 const auto fingerprint = storage::tar::FileWriter::GenerateFingerprint;
319 storage::tar::FileWriter writer{path, fingerprint};
320
321 storage::serialization::write(writer, "/common/timestamp", timestamp);
322}
323
324// reads .osrm.maneuver_overrides
325template <typename StorageManeuverOverrideT, typename NodeSequencesT>

Callers 1

ParseOSMDataMethod · 0.85

Calls 1

writeFunction · 0.70

Tested by

no test coverage detected