/// Parses the contents of the input as DIS version 6.
/// This function tries to parse as many PDUs as there are in the buffer,
/// assuming there are only complete PDUs present in the input.
///
/// This function will filter out any non-v6 PDUs in a buffer (packet).
Parses the contents of the input as DIS version 6.
This function tries to parse as many PDUs as there are in the buffer,
assuming there are only complete PDUs present in the input.

This function will filter out any non-v6 PDUs in a buffer (packet).
Parses the contents of the input as DIS version 6 . This function tries to parse as many PDUs as there are in the buffer assuming there are only complete PDUs present in the input . This function will filter out any non - v6 PDUs in a buffer ( packet ) .
pub fn parse_v6(input: &[u8]) -> Result<Vec<Pdu>, DisError> {
    let pdus = parse_multiple_pdu(input)?.into_iter()
        .filter(|pdu| pdu.header.protocol_version == ProtocolVersion::Ieee1278_1a_1998)
        .collect();
    Ok(pdus)
}
pub fn parse_v6 ( input : & [ u8 ] ) -> Result < Vec < Pdu > , DisError > { let pdus = parse_multiple_pdu ( input ) ? . into_iter ( ) . filter ( | pdu | pdu . header . protocol_version == ProtocolVersion :: Ieee1278_1a_1998 ) . collect ( ) ; Ok ( pdus ) }
Parses the contents of the input as DIS version 6.
Parses the contents of the input as DIS version 6 .
input
&[u8]