| 152 | } |
| 153 | |
| 154 | size_t Next(bool *value) { |
| 155 | size_t len = num_bits_ - offset_; |
| 156 | if (PREDICT_FALSE(len == 0)) |
| 157 | return(0); |
| 158 | |
| 159 | *value = BitmapTest(map_, offset_); |
| 160 | |
| 161 | size_t index; |
| 162 | if (BitmapFindFirst(map_, offset_, num_bits_, !(*value), &index)) { |
| 163 | len = index - offset_; |
| 164 | } else { |
| 165 | index = num_bits_; |
| 166 | } |
| 167 | |
| 168 | offset_ = index; |
| 169 | return len; |
| 170 | } |
| 171 | |
| 172 | private: |
| 173 | size_t offset_; |
nothing calls this directly
no test coverage detected