Lines Matching refs:packet
210 fn depacketize(&mut self, packet: &Bytes) -> Result<Bytes> { in depacketize()
211 if packet.len() <= 2 { in depacketize()
219 let b0 = packet[0]; in depacketize()
225 payload.put_u32(packet.len() as u32); in depacketize()
229 payload.put(&*packet.clone()); in depacketize()
234 while curr_offset < packet.len() { in depacketize()
236 ((packet[curr_offset] as usize) << 8) | packet[curr_offset + 1] as usize; in depacketize()
239 if packet.len() < curr_offset + nalu_size { in depacketize()
242 packet.len() - curr_offset, in depacketize()
251 payload.put(&*packet.slice(curr_offset..curr_offset + nalu_size)); in depacketize()
258 if packet.len() < FUA_HEADER_SIZE { in depacketize()
267 fua_buffer.put(&*packet.slice(FUA_HEADER_SIZE..)); in depacketize()
270 let b1 = packet[1]; in depacketize()