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

Function writeNodeData

include/extractor/files.hpp:229–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227// writes .osrm.ebg_nodes
228template <typename NodeDataT>
229inline void writeNodeData(const std::filesystem::path &path, const NodeDataT &node_data)
230{
231 static_assert(std::is_same<EdgeBasedNodeDataContainer, NodeDataT>::value ||
232 std::is_same<EdgeBasedNodeDataView, NodeDataT>::value ||
233 std::is_same<EdgeBasedNodeDataExternalContainer, NodeDataT>::value,
234 "");
235 const auto fingerprint = storage::tar::FileWriter::GenerateFingerprint;
236 storage::tar::FileWriter writer{path, fingerprint};
237
238 serialization::write(writer, "/common/ebg_node_data", node_data);
239}
240
241// reads .osrm.tls
242template <typename OffsetsT, typename MaskT>

Callers 2

RunMethod · 0.85
runMethod · 0.85

Calls 1

writeFunction · 0.70

Tested by

no test coverage detected