AntoinePrv commented on code in PR #47294: URL: https://github.com/apache/arrow/pull/47294#discussion_r2333879793
########## cpp/src/arrow/util/bit_stream_utils_internal.h: ########## @@ -483,13 +496,17 @@ inline bool BitReader::GetZigZagVlqInt(int32_t* v) { } inline bool BitWriter::PutVlqInt(uint64_t v) { - bool result = true; - while ((v & 0xFFFFFFFFFFFFFF80ULL) != 0ULL) { - result &= PutAligned<uint8_t>(static_cast<uint8_t>((v & 0x7F) | 0x80), 1); - v >>= 7; + constexpr auto kMaxBytes = bit_util::MaxLEB128ByteLenFor<decltype(v)>; Review Comment: That's member of the reader that was kept for compatibility. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org