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).
| 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_; |