kangkaisen commented on a change in pull request #1818: Add frame_of_reference
page
URL: https://github.com/apache/incubator-doris/pull/1818#discussion_r328003704
##########
File path: be/src/util/bit_stream_utils.h
##########
@@ -48,9 +48,11 @@ class BitWriter {
// fraction of a byte). Includes buffered values.
int bytes_written() const { return byte_offset_ + BitUtil::Ceil(bit_offset_,
8); }
+ // The number of current bits written, Includes buffered values.
+ int bits_written() const { return byte_offset_ * 8 + bit_offset_; }
Review comment:
OK
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]