Skip to main content

find_one_byte_element

Function find_one_byte_element 

Source
pub fn find_one_byte_element(packet: &[u8], target_id: u8) -> Option<&[u8]>
Expand description

Finds an RFC 8285 one-byte extension element in a complete muxed RTP packet.

Zero octets are padding. A nonzero element with ID 0 is malformed and ID 15 terminates processing, so neither can expose a later element. Packets without the one-byte extension profile return None.

References: