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

Method BitmapWriter

cpp/src/arrow/util/bitmap_writer.h:35–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34 public:
35 BitmapWriter(uint8_t* bitmap, int64_t start_offset, int64_t length)
36 : bitmap_(bitmap), position_(0), length_(length) {
37 byte_offset_ = start_offset / 8;
38 bit_mask_ = bit_util::kBitmask[start_offset % 8];
39 if (length > 0) {
40 current_byte_ = bitmap[byte_offset_];
41 } else {
42 current_byte_ = 0;
43 }
44 }
45
46 void Set() { current_byte_ |= bit_mask_; }
47

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected