| 130 | } |
| 131 | |
| 132 | void Reset(const uint8_t* buffer, int buffer_len) noexcept { |
| 133 | buffer_ = buffer; |
| 134 | max_bytes_ = buffer_len; |
| 135 | byte_offset_ = 0; |
| 136 | bit_offset_ = 0; |
| 137 | buffered_values_ = |
| 138 | detail::ReadLittleEndianWord(buffer_ + byte_offset_, max_bytes_ - byte_offset_); |
| 139 | } |
| 140 | |
| 141 | /// Gets the next value from the buffer. Returns true if 'v' could be read or false if |
| 142 | /// there are not enough bytes left. |
nothing calls this directly
no test coverage detected