| 39 | } |
| 40 | |
| 41 | std::string Bitmap::Diff(const Bitmap& other) const { |
| 42 | auto this_buf = std::make_shared<Buffer>(data_, length_); |
| 43 | auto other_buf = std::make_shared<Buffer>(other.data_, other.length_); |
| 44 | |
| 45 | auto this_arr = std::make_shared<BooleanArray>(length_, this_buf, nullptr, 0, offset_); |
| 46 | auto other_arr = |
| 47 | std::make_shared<BooleanArray>(other.length_, other_buf, nullptr, 0, other.offset_); |
| 48 | |
| 49 | return this_arr->Diff(*other_arr); |
| 50 | } |
| 51 | |
| 52 | void Bitmap::CopyFrom(const Bitmap& other) { |
| 53 | ::arrow::internal::CopyBitmap(other.data_, other.offset_, other.length_, mutable_data_, |
no outgoing calls