| 125 | |
| 126 | |
| 127 | point_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 | |
| 149 | bool SbetReader::eof() |
nothing calls this directly
no test coverage detected