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

Function Copy

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

Source from the content-addressed store, hash-verified

1309namespace {
1310
1311static 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

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