MCPcopy Create free account
hub / github.com/apache/arrow / Copy

Function Copy

cpp/src/arrow/util/bitmap_test.cc:1375–1382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1373namespace {
1374
1375static Bitmap Copy(const Bitmap& bitmap, std::shared_ptr<Buffer> storage) {
1376 int64_t i = 0;
1377 Bitmap bitmaps[] = {bitmap};
1378 auto min_offset = Bitmap::VisitWords(bitmaps, [&](std::array<uint64_t, 1> uint64s) {
1379 reinterpret_cast<uint64_t*>(storage->mutable_data())[i++] = uint64s[0];
1380 });
1381 return Bitmap(storage, min_offset, bitmap.length());
1382}
1383
1384} // namespace
1385

Callers 1

TESTFunction · 0.70

Calls 4

VisitWordsFunction · 0.85
BitmapFunction · 0.70
mutable_dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected