| 1309 | namespace { |
| 1310 | |
| 1311 | static Bitmap Copy(const Bitmap& bitmap, std::shared_ptr<Buffer> storage) { |
| 1312 | int64_t i = 0; |
| 1313 | Bitmap bitmaps[] = {bitmap}; |
| 1314 | auto min_offset = Bitmap::VisitWords(bitmaps, [&](std::array<uint64_t, 1> uint64s) { |
| 1315 | reinterpret_cast<uint64_t*>(storage->mutable_data())[i++] = uint64s[0]; |
| 1316 | }); |
| 1317 | return Bitmap(storage, min_offset, bitmap.length()); |
| 1318 | } |
| 1319 | |
| 1320 | } // namespace |
| 1321 |
no test coverage detected