| 592 | |
| 593 | template <typename T> |
| 594 | uint32_t DictDecoder<T>::CopyLiteralsToOutput( |
| 595 | uint32_t max_to_copy, StrideWriter<T>* out) { |
| 596 | uint32_t num_to_copy = |
| 597 | std::min<uint32_t>(num_literal_values_ - next_literal_idx_, max_to_copy); |
| 598 | for (uint32_t i = 0; i < num_to_copy; ++i) { |
| 599 | out->SetNext(decoded_values_[next_literal_idx_++]); |
| 600 | } |
| 601 | return num_to_copy; |
| 602 | } |
| 603 | |
| 604 | template <typename T> |
| 605 | bool DictDecoder<T>::DecodeNextValue(T* value) { |