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

Function write

include/customizer/serialization.hpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25template <storage::Ownership Ownership>
26inline void write(storage::tar::FileWriter &writer,
27 const std::string &name,
28 const detail::CellMetricImpl<Ownership> &metric)
29{
30 storage::serialization::write(writer, name + "/weights", metric.weights);
31 storage::serialization::write(writer, name + "/durations", metric.durations);
32 storage::serialization::write(writer, name + "/distances", metric.distances);
33}
34
35template <typename EdgeDataT, storage::Ownership Ownership>
36inline void read(storage::tar::FileReader &reader,

Callers 2

writeCellMetricsFunction · 0.70
writeGraphFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected