Skip to main content

decode_parameters_in

Function decode_parameters_in 

Source
fn decode_parameters_in(
    buf: &mut impl Buf,
    known: &[u64],
    message_namespace: bool,
) -> Result<Vec<KeyValuePair>, CodecError>
Expand description

Decode a count-prefixed parameter list with delta-encoded Types, refusing a repeat of a type in known.

message_namespace says which of the two rules about unknown types applies. The namespaces part company here and only here: an unknown Message Parameter ends the session, and an unknown Setup Parameter is carried because “Receivers ignore unrecognized Setup Parameters”.