Function dis_rs::parse

source ·
pub fn parse(input: &[u8]) -> Result<Vec<Pdu>, DisError>
Expand description

Parses the contents of the input, determining the DIS version by itself. This function tries to parse as many PDUs as there are in the buffer, assuming there are only complete PDUs present in the input.

Assumes there will only be a single DIS version of PDUs in a buffer (packet).