| 48 | bool IsNotSet() const { return (current_byte_ & (1 << bit_offset_)) == 0; } |
| 49 | |
| 50 | void Next() { |
| 51 | ++bit_offset_; |
| 52 | ++position_; |
| 53 | if (ARROW_PREDICT_FALSE(bit_offset_ == 8)) { |
| 54 | bit_offset_ = 0; |
| 55 | ++byte_offset_; |
| 56 | if (ARROW_PREDICT_TRUE(position_ < length_)) { |
| 57 | current_byte_ = bitmap_[byte_offset_]; |
| 58 | } |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | int64_t position() const { return position_; } |
| 63 |