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

Method bytes_left

cpp/src/arrow/util/bit_stream_utils_internal.h:181–184  ·  view source on GitHub ↗

Returns the number of bytes left in the stream, not including the current byte (i.e., there may be an additional fraction of a byte).

Source from the content-addressed store, hash-verified

179 /// Returns the number of bytes left in the stream, not including the current
180 /// byte (i.e., there may be an additional fraction of a byte).
181 int bytes_left() const {
182 return max_bytes_ -
183 (byte_offset_ + static_cast<int>(bit_util::BytesForBits(bit_offset_)));
184 }
185
186 private:
187 const uint8_t* buffer_;

Callers 4

TestBitArrayValuesFunction · 0.80
TestPutValueFunction · 0.80
DecodeMethod · 0.80
SetDataMethod · 0.80

Calls 1

BytesForBitsFunction · 0.85

Tested by 2

TestBitArrayValuesFunction · 0.64
TestPutValueFunction · 0.64