The number of current bytes written, including the current byte (i.e. may include a fraction of a byte). Includes buffered values.
| 52 | /// The number of current bytes written, including the current byte (i.e. may include a |
| 53 | /// fraction of a byte). Includes buffered values. |
| 54 | int bytes_written() const { |
| 55 | return byte_offset_ + static_cast<int>(bit_util::BytesForBits(bit_offset_)); |
| 56 | } |
| 57 | uint8_t* buffer() const { return buffer_; } |
| 58 | int buffer_len() const { return max_bytes_; } |
| 59 |