rtp_parser/
rtp_header_extension.rs

1/// An RTP packet header extension, https://tools.ietf.org/html/rfc3550#section-5.3.1
2#[derive(Debug)]
3pub struct RtpPacketHeaderExtension<'a> {
4    // profile -- 2 bytes
5    pub profile: u16,
6
7    // length (in number of 32 bit words) -- 2 bytes
8    pub length: u16,
9
10    // variable length data -- {length*4} bytes
11    pub data: &'a [u8],
12}