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

Function write

include/util/serialization.hpp:18–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17template <unsigned BlockSize, storage::Ownership Ownership>
18void write(storage::tar::FileWriter &writer,
19 const std::string &name,
20 const util::RangeTable<BlockSize, Ownership> &table)
21{
22 writer.WriteFrom(name + "/sum_lengths.meta", table.sum_lengths);
23 storage::serialization::write(writer, name + "/block_offsets", table.block_offsets);
24 storage::serialization::write(writer, name + "/diff_blocks", table.diff_blocks);
25}
26
27template <unsigned BlockSize, storage::Ownership Ownership>
28void read(storage::tar::FileReader &reader,

Callers 8

operator()Method · 0.70
writeMethod · 0.70
mainFunction · 0.50
setupRegionFunction · 0.50
ParseOSMDataMethod · 0.50
BOOST_AUTO_TEST_CASEFunction · 0.50
BOOST_AUTO_TEST_CASEFunction · 0.50
BOOST_AUTO_TEST_CASEFunction · 0.50

Calls 3

WriteFromMethod · 0.45
WriteElementCount64Method · 0.45
beginMethod · 0.45

Tested by

no test coverage detected