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

Method VisitBitmap

cpp/src/arrow/util/byte_size.cc:125–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123 UInt64Builder* range_lengths;
124
125 Status VisitBitmap(const std::shared_ptr<Buffer>& buffer) const {
126 if (buffer) {
127 uint64_t data_start = reinterpret_cast<uint64_t>(buffer->data());
128 RETURN_NOT_OK(range_starts->Append(data_start));
129 RETURN_NOT_OK(range_offsets->Append(bit_util::RoundDown(offset, 8) / 8));
130 RETURN_NOT_OK(range_lengths->Append(bit_util::CoveringBytes(offset, length)));
131 }
132 return Status::OK();
133 }
134
135 Status VisitFixedWidthArray(const Buffer& buffer, const FixedWidthType& type) const {
136 uint64_t data_start = reinterpret_cast<uint64_t>(buffer.data());

Callers

nothing calls this directly

Calls 5

RoundDownFunction · 0.85
CoveringBytesFunction · 0.85
OKFunction · 0.50
dataMethod · 0.45
AppendMethod · 0.45

Tested by

no test coverage detected