| 339 | } |
| 340 | |
| 341 | inline bool BitReader::AdvanceBytes(int num_bytes) { |
| 342 | if (ARROW_PREDICT_FALSE(num_bytes > max_bytes_ - byte_offset_)) { |
| 343 | return false; |
| 344 | } |
| 345 | byte_offset_ += num_bytes; |
| 346 | bit_offset_ = 0; |
| 347 | buffered_values_ = |
| 348 | detail::ReadLittleEndianWord(buffer_ + byte_offset_, max_bytes_ - byte_offset_); |
| 349 | return true; |
| 350 | } |
| 351 | |
| 352 | template <typename Int> |
| 353 | inline bool BitWriter::PutVlqInt(Int v) { |
nothing calls this directly
no test coverage detected