Lines Matching refs:raw_packet
131 fn unmarshal<B>(raw_packet: &mut B) -> Result<Self> in unmarshal()
144 let raw_packet_len = raw_packet.remaining(); in unmarshal()
149 let source = raw_packet.get_u32(); in unmarshal()
154 let item = SourceDescriptionItem::unmarshal(raw_packet)?; in unmarshal()
158 if raw_packet.remaining() >= padding_len { in unmarshal()
159 raw_packet.advance(padding_len); in unmarshal()
231 fn unmarshal<B>(raw_packet: &mut B) -> Result<Self> in unmarshal()
243 let raw_packet_len = raw_packet.remaining(); in unmarshal()
248 let sdes_type = SdesType::from(raw_packet.get_u8()); in unmarshal()
260 let octet_count = raw_packet.get_u8() as usize; in unmarshal()
265 let text = raw_packet.copy_to_bytes(octet_count); in unmarshal()
387 fn unmarshal<B>(raw_packet: &mut B) -> Result<Self> in unmarshal()
409 let raw_packet_len = raw_packet.remaining(); in unmarshal()
411 let h = Header::unmarshal(raw_packet)?; in unmarshal()
419 let chunk = SourceDescriptionChunk::unmarshal(raw_packet)?; in unmarshal()
430 raw_packet.has_remaining() { in unmarshal()
431 raw_packet.advance(raw_packet.remaining()); in unmarshal()