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

Method read

io/SbetReader.cpp:127–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125
126
127point_count_t SbetReader::read(PointViewPtr view, point_count_t count)
128{
129 PointId nextId = view->size();
130 PointId idx = m_private->index;
131 point_count_t numRead = 0;
132 seek(idx);
133 while (numRead < count && idx < m_private->numPts)
134 {
135 PointRef point = view->point(nextId);
136 processOne(point);
137 if (m_cb)
138 m_cb(*view, nextId);
139
140 idx++;
141 nextId++;
142 numRead++;
143 }
144 m_private->index = idx;
145 return numRead;
146}
147
148
149bool SbetReader::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