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

Method Clear

cpp/src/arrow/util/bit_util_benchmark.cc:85–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 }
84
85 void Clear() {
86 const int64_t byte_offset = position_ / 8;
87 const int64_t bit_offset = position_ % 8;
88 auto bit_clear_mask = 0xFFU ^ (1U << bit_offset);
89 bitmap_[byte_offset] = static_cast<uint8_t>(bitmap_[byte_offset] & bit_clear_mask);
90 }
91
92 void Next() { ++position_; }
93

Callers 2

CreateRandomBitsBufferFunction · 0.45
BenchmarkBitmapWriterFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected