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

Function VisitBits

cpp/src/arrow/util/bitmap.h:110–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108 /// All bitmaps must have identical length.
109 template <size_t N, typename Visitor>
110 static void VisitBits(const Bitmap (&bitmaps)[N], Visitor&& visitor) {
111 int64_t bit_length = BitLength(bitmaps, N);
112 std::bitset<N> bits;
113 for (int64_t bit_i = 0; bit_i < bit_length; ++bit_i) {
114 for (size_t i = 0; i < N; ++i) {
115 bits[i] = bitmaps[i].GetBit(bit_i);
116 }
117 visitor(bits);
118 }
119 }
120
121 /// \brief Visit bits from each bitmap as bitset<N>
122 ///

Callers 3

SafeLoadWordsFunction · 0.70
operator()Method · 0.70
RunMethod · 0.50

Calls 1

BitLengthFunction · 0.85

Tested by 1

operator()Method · 0.56