| 493 | |
| 494 | template <typename T> |
| 495 | inline void RleBatchDecoder<T>::Reset(uint8_t* buffer, int buffer_len, int bit_width) { |
| 496 | DCHECK(buffer != nullptr); |
| 497 | DCHECK_GE(buffer_len, 0); |
| 498 | DCHECK_GE(bit_width, 0); |
| 499 | DCHECK_LE(bit_width, sizeof(T) * 8); |
| 500 | DCHECK_LE(bit_width, BatchedBitReader::MAX_BITWIDTH); |
| 501 | bit_reader_.Reset(buffer, buffer_len); |
| 502 | bit_width_ = bit_width; |
| 503 | repeat_count_ = 0; |
| 504 | literal_count_ = 0; |
| 505 | num_buffered_literals_ = 0; |
| 506 | literal_buffer_pos_ = 0; |
| 507 | } |
| 508 | |
| 509 | template <typename T> |
| 510 | inline int32_t RleBatchDecoder<T>::NextNumRepeats() { |
no outgoing calls