| 76 | : bitmap_(bitmap), position_(0) {} |
| 77 | |
| 78 | void Set() { |
| 79 | const int64_t byte_offset = position_ / 8; |
| 80 | const int64_t bit_offset = position_ % 8; |
| 81 | auto bit_set_mask = (1U << bit_offset); |
| 82 | bitmap_[byte_offset] = static_cast<uint8_t>(bitmap_[byte_offset] | bit_set_mask); |
| 83 | } |
| 84 | |
| 85 | void Clear() { |
| 86 | const int64_t byte_offset = position_ / 8; |
no outgoing calls
no test coverage detected