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

Method Set

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

Source from the content-addressed store, hash-verified

76 : bitmap_(bitmap), position_(0) {}
77
78 void Set() {
79 const int64_t byte_offset = position_ / 8;
80 const int64_t bit_offset = position_ % 8;
81 auto bit_set_mask = (1U << bit_offset);
82 bitmap_[byte_offset] = static_cast<uint8_t>(bitmap_[byte_offset] | bit_set_mask);
83 }
84
85 void Clear() {
86 const int64_t byte_offset = position_ / 8;

Callers 2

CreateRandomBitsBufferFunction · 0.45
BenchmarkBitmapWriterFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected