MCPcopy Create free account
hub / github.com/PDAL/PDAL / read

Method read

io/SbetSmrmsgReader.cpp:95–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93
94
95point_count_t SmrmsgReader::read(PointViewPtr view, point_count_t count)
96{
97 PointId nextId = view->size();
98 PointId idx = m_index;
99 point_count_t numRead = 0;
100 seek(idx);
101 while (numRead < count && idx < m_numPts)
102 {
103 PointRef point = view->point(nextId);
104 processOne(point);
105 if (m_cb)
106 m_cb(*view, nextId);
107
108 idx++;
109 nextId++;
110 numRead++;
111 }
112 m_index = idx;
113 return numRead;
114}
115
116
117bool SmrmsgReader::eof()

Callers

nothing calls this directly

Calls 4

processOneFunction · 0.85
pointMethod · 0.80
seekFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected