Skip to main content

encode_kvp_delta

Function encode_kvp_delta 

Source
fn encode_kvp_delta(
    pairs: &[KeyValuePair],
    buf: &mut impl BufMut,
) -> Result<(), CodecError>
Expand description

Encode delta-encoded KVPs with even/odd convention.

Refuses a list that is not in ascending order by type, for the same reason encode_parameters does: the delta is a difference, and a descending pair wraps it into a nine-byte delta the peer resolves to an unrelated key.