| 388 | } |
| 389 | |
| 390 | bool OptionalBitmapEquals(const uint8_t* left, int64_t left_offset, const uint8_t* right, |
| 391 | int64_t right_offset, int64_t length) { |
| 392 | if (left == nullptr && right == nullptr) { |
| 393 | return true; |
| 394 | } else if (left != nullptr && right != nullptr) { |
| 395 | return BitmapEquals(left, left_offset, right, right_offset, length); |
| 396 | } else if (left != nullptr) { |
| 397 | return CountSetBits(left, left_offset, length) == length; |
| 398 | } else { |
| 399 | return CountSetBits(right, right_offset, length) == length; |
| 400 | } |
| 401 | } |
| 402 | |
| 403 | bool OptionalBitmapEquals(const std::shared_ptr<Buffer>& left, int64_t left_offset, |
| 404 | const std::shared_ptr<Buffer>& right, int64_t right_offset, |
no test coverage detected