| 87 | /// Get many values from a batch RLE decoder using its GetValues() function. |
| 88 | template <typename T> |
| 89 | static bool GetRleValuesBatchedSkip(RleBatchDecoder<T>* decoder, int num_vals, T* vals, |
| 90 | int skip_at, int skip_count) { |
| 91 | int cnt = 0; |
| 92 | if (skip_at > 0) cnt += decoder->GetValues(skip_at, vals); |
| 93 | if (decoder->SkipValues(skip_count) != skip_count) return false; |
| 94 | cnt += skip_count; |
| 95 | if (num_vals - cnt > 0) cnt += decoder->GetValues(num_vals - cnt, vals + skip_at); |
| 96 | return cnt == num_vals; |
| 97 | } |
| 98 | |
| 99 | // Validates encoding of values by encoding and decoding them. |
| 100 | // If expected_encoding != NULL, validates that the encoded buffer is |
nothing calls this directly
no test coverage detected