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

Function readTimestamp

include/extractor/files.hpp:306–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304// reads .osrm.timestamp
305template <typename TimestampDataT>
306inline void readTimestamp(const std::filesystem::path &path, TimestampDataT &timestamp)
307{
308 const auto fingerprint = storage::tar::FileReader::VerifyFingerprint;
309 storage::tar::FileReader reader{path, fingerprint};
310
311 storage::serialization::read(reader, "/common/timestamp", timestamp);
312}
313
314// writes .osrm.timestamp
315template <typename TimestampDataT>

Callers 1

PopulateStaticDataMethod · 0.85

Calls 1

readFunction · 0.70

Tested by

no test coverage detected