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

Function VisitBits

cpp/src/arrow/util/bitmap_visit.h:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30// GenerateBits.
31template <class Visitor>
32void VisitBits(const uint8_t* bitmap, int64_t start_offset, int64_t length,
33 Visitor&& visit) {
34 BitmapReader reader(bitmap, start_offset, length);
35 for (int64_t index = 0; index < length; ++index) {
36 visit(reader.IsSet());
37 reader.Next();
38 }
39}
40
41// Like VisitBits(), but unrolls its main loop for better performance.
42template <class Visitor>

Callers

nothing calls this directly

Calls 2

IsSetMethod · 0.45
NextMethod · 0.45

Tested by

no test coverage detected