Skip to main content

encode_dss

Function encode_dss 

Source
pub fn encode_dss(
    dss_type: u8,
    chained: bool,
    correlator: u16,
    ddm: &[u8],
) -> Vec<u8> ⓘ
Expand description

Wrap a DDM object (or concatenation of them) in a DSS envelope.

  • dss_type — one of DSSFMT_RQSDSS / DSSFMT_RPYDSS / DSSFMT_OBJDSS.
  • chained — set the “chained, same correlator” flags (0x40 | 0x10) so the peer expects another DSS with the same correlator to follow.