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

Function write

include/storage/serialization.hpp:120–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118
119template <typename T>
120inline void write(storage::tar::FileWriter &writer,
121 const std::string &name,
122 const util::DeallocatingVector<T> &vec)
123{
124 writer.WriteElementCount64(name, vec.size());
125 writer.WriteStreaming<T>(name, vec.begin(), vec.size());
126}
127
128template <typename T> void read(io::BufferReader &reader, std::vector<T> &data)
129{

Callers

nothing calls this directly

Calls 5

WriteElementCount64Method · 0.45
sizeMethod · 0.45
beginMethod · 0.45
WriteFromMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected