Sets the bit buffer to |b|. |s| is the size of |b| in bytes.
| 128 | |
| 129 | // Sets the bit buffer to |b|. |s| is the size of |b| in bytes. |
| 130 | inline void reset(const void *b, size_t s) { |
| 131 | bit_offset_ = 0; |
| 132 | bit_buffer_ = static_cast<const uint8_t *>(b); |
| 133 | bit_buffer_end_ = bit_buffer_ + s; |
| 134 | } |
| 135 | |
| 136 | // Returns number of bits decoded so far. |
| 137 | inline uint64_t BitsDecoded() const { |
no outgoing calls