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

Method ReadLine

include/storage/io.hpp:75–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73
74 /* Read one line */
75 template <typename T> void ReadLine(T *dest, const std::size_t count)
76 {
77 if (0 < count)
78 {
79 memset(dest, 0, count * sizeof(T));
80 input_stream.getline(reinterpret_cast<char *>(dest), count * sizeof(T));
81 }
82 }
83
84 /* Read count objects of type T into pointer dest */
85 template <typename T> void ReadInto(T *dest, const std::size_t count)

Callers 1

RasterGridMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected