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