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

Function Copy

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

Source from the content-addressed store, hash-verified

1496namespace {
1497
1498static 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

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