Lines Matching refs:raw_packet
121 fn unmarshal<B>(raw_packet: &mut B) -> Result<Self> in unmarshal()
126 if raw_packet.remaining() < XR_HEADER_LENGTH { in unmarshal()
130 let block_type: BlockType = raw_packet.get_u8().into(); in unmarshal()
131 let type_specific = raw_packet.get_u8(); in unmarshal()
132 let block_length = raw_packet.get_u16(); in unmarshal()
248 fn unmarshal<B>(raw_packet: &mut B) -> Result<Self> in unmarshal()
253 let raw_packet_len = raw_packet.remaining(); in unmarshal()
258 let header = Header::unmarshal(raw_packet)?; in unmarshal()
263 let sender_ssrc = raw_packet.get_u32(); in unmarshal()
267 while raw_packet.remaining() > 0 { in unmarshal()
272 let block_type: BlockType = raw_packet.chunk()[0].into(); in unmarshal()
274 BlockType::LossRLE => Box::new(LossRLEReportBlock::unmarshal(raw_packet)?), in unmarshal()
276 Box::new(DuplicateRLEReportBlock::unmarshal(raw_packet)?) in unmarshal()
279 Box::new(PacketReceiptTimesReportBlock::unmarshal(raw_packet)?) in unmarshal()
282 Box::new(ReceiverReferenceTimeReportBlock::unmarshal(raw_packet)?) in unmarshal()
284 BlockType::DLRR => Box::new(DLRRReportBlock::unmarshal(raw_packet)?), in unmarshal()
286 Box::new(StatisticsSummaryReportBlock::unmarshal(raw_packet)?) in unmarshal()
288 BlockType::VoIPMetrics => Box::new(VoIPMetricsReportBlock::unmarshal(raw_packet)?), in unmarshal()
289 _ => Box::new(UnknownReportBlock::unmarshal(raw_packet)?), in unmarshal()