| 292 | |
| 293 | template <typename SetBitRunReaderType> |
| 294 | std::vector<SetBitRun> AllBitRuns(SetBitRunReaderType* reader) { |
| 295 | std::vector<SetBitRun> runs; |
| 296 | auto run = reader->NextRun(); |
| 297 | while (!run.AtEnd()) { |
| 298 | runs.push_back(run); |
| 299 | run = reader->NextRun(); |
| 300 | } |
| 301 | return runs; |
| 302 | } |
| 303 | |
| 304 | template <typename SetBitRunReaderType> |
| 305 | void AssertBitRuns(SetBitRunReaderType* reader, |