| 33 | |
| 34 | public: |
| 35 | BitmapWriter(uint8_t* bitmap, int64_t start_offset, int64_t length) |
| 36 | : bitmap_(bitmap), position_(0), length_(length) { |
| 37 | byte_offset_ = start_offset / 8; |
| 38 | bit_mask_ = bit_util::kBitmask[start_offset % 8]; |
| 39 | if (length > 0) { |
| 40 | current_byte_ = bitmap[byte_offset_]; |
| 41 | } else { |
| 42 | current_byte_ = 0; |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | void Set() { current_byte_ |= bit_mask_; } |
| 47 |
nothing calls this directly
no outgoing calls
no test coverage detected