span of all bytes which contain any bit in this Bitmap
| 385 | |
| 386 | /// span of all bytes which contain any bit in this Bitmap |
| 387 | std::span<const uint8_t> bytes() const { |
| 388 | auto byte_offset = offset_ / 8; |
| 389 | auto byte_count = bit_util::CeilDiv(offset_ + length_, 8) - byte_offset; |
| 390 | return {data_ + byte_offset, static_cast<size_t>(byte_count)}; |
| 391 | } |
| 392 | |
| 393 | private: |
| 394 | /// span of all Words which contain any bit in this Bitmap |