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

Method Reset

cpp/src/arrow/util/rle_bitmap_internal.h:83–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 explicit RleRunToBitmapDecoder(const RunType& run) noexcept { Reset(run); }
82
83 void Reset(const RunType& run) noexcept {
84 values_left_ = run.values_count();
85 if (run.value_little_endian() == 0) {
86 value_pattern_ = uint8_t{0};
87 } else {
88 value_pattern_ = uint8_t{0xFF};
89 }
90 }
91
92 /// Return the number of values that can be advanced.
93 rle_size_t remaining() const { return values_left_; }

Callers 1

ResetMethod · 0.45

Calls 2

value_little_endianMethod · 0.80
values_countMethod · 0.45

Tested by

no test coverage detected