Advance by as many values as provided or until exhaustion of the decoder. Return the number of values skipped.
| 307 | /// Advance by as many values as provided or until exhaustion of the decoder. |
| 308 | /// Return the number of values skipped. |
| 309 | [[nodiscard]] rle_size_t Advance(rle_size_t batch_size) { |
| 310 | const auto steps = std::min(batch_size, remaining_count_); |
| 311 | remaining_count_ -= steps; |
| 312 | return steps; |
| 313 | } |
| 314 | |
| 315 | /// Advance and count the number of occurrences of a value. |
| 316 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected