| 1496 | namespace { |
| 1497 | |
| 1498 | static Bitmap Copy(const Bitmap& bitmap, std::shared_ptr<Buffer> storage) { |
| 1499 | int64_t i = 0; |
| 1500 | Bitmap bitmaps[] = {bitmap}; |
| 1501 | auto min_offset = Bitmap::VisitWords(bitmaps, [&](std::array<uint64_t, 1> uint64s) { |
| 1502 | reinterpret_cast<uint64_t*>(storage->mutable_data())[i++] = uint64s[0]; |
| 1503 | }); |
| 1504 | return Bitmap(storage, min_offset, bitmap.length()); |
| 1505 | } |
| 1506 | |
| 1507 | } // namespace |
| 1508 |
no test coverage detected