| 30 | // GenerateBits. |
| 31 | template <class Visitor> |
| 32 | void VisitBits(const uint8_t* bitmap, int64_t start_offset, int64_t length, |
| 33 | Visitor&& visit) { |
| 34 | BitmapReader reader(bitmap, start_offset, length); |
| 35 | for (int64_t index = 0; index < length; ++index) { |
| 36 | visit(reader.IsSet()); |
| 37 | reader.Next(); |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | // Like VisitBits(), but unrolls its main loop for better performance. |
| 42 | template <class Visitor> |