// Count count-value runs required for a bounded run-length encoding, splitting long repeated runs at the configured maximum. pub fn rle_encoded_pairs(values: vector, max_run: i64) -> i64 { if max_run<1 { return -1; } let mut pairs = 0; let mut n = 0; let mut i = 0; while i