| /webrtc/turn/src/proto/lifetime/ |
| H A D | lifetime_test.rs | 5 let l = Lifetime(Duration::from_secs(10)); in test_lifetime_string() localVariable 6 assert_eq!(l.to_string(), "10s", "bad string {l}, expected 10s"); in test_lifetime_string() 14 let l = Lifetime(Duration::from_secs(10)); in test_lifetime_add_to() localVariable 15 l.add_to(&mut m)?; in test_lifetime_add_to() 25 assert_eq!(life, l, "Decoded {life}, expected {l}"); in test_lifetime_add_to()
|
| /webrtc/util/src/marshal/ |
| H A D | mod.rs | 15 let l = self.marshal_size(); in marshal() localVariable 16 let mut buf = BytesMut::with_capacity(l); in marshal() 17 buf.resize(l, 0); in marshal() 19 if n != l { in marshal()
|
| /webrtc/turn/src/proto/ |
| H A D | chandata.rs | 9 fn nearest_padded_value_length(l: usize) -> usize { in nearest_padded_value_length() 10 let mut n = PADDING * (l / PADDING); in nearest_padded_value_length() 11 if n < l { in nearest_padded_value_length() 68 let l = u16::from_be_bytes([ in decode() localVariable 72 if l > buf[CHANNEL_DATA_HEADER_SIZE..].len() { in decode() 75 self.data = buf[CHANNEL_DATA_HEADER_SIZE..CHANNEL_DATA_HEADER_SIZE + l].to_vec(); in decode()
|
| /webrtc/stun/src/ |
| H A D | addr.rs | 80 let l = std::cmp::min(ip.len(), v[4..].len()); in get_from_as() localVariable 81 ip[..l].copy_from_slice(&v[4..4 + l]); in get_from_as() 85 let l = std::cmp::min(ip.len(), v[4..].len()); in get_from_as() localVariable 86 ip[..l].copy_from_slice(&v[4..4 + l]); in get_from_as()
|
| H A D | fingerprint.rs | 41 let l = m.length; in add_to() localVariable 47 m.length = l; in add_to()
|
| H A D | attributes.rs | 191 pub(crate) fn nearest_padded_value_length(l: usize) -> usize { in nearest_padded_value_length() 192 let mut n = PADDING * (l / PADDING); in nearest_padded_value_length() 193 if n < l { in nearest_padded_value_length()
|
| /webrtc/mdns/src/message/resource/ |
| H A D | opt.rs | 68 let (l, new_off) = unpack_uint16(msg, off)?; in unpack() 73 data: vec![0; l as usize], in unpack() 75 if off + l as usize > msg.len() { in unpack() 78 opt.data.copy_from_slice(&msg[off..off + l as usize]); in unpack() 79 off += l as usize; in unpack()
|
| /webrtc/rtcp/src/compound_packet/ |
| H A D | mod.rs | 53 let mut l = 0; in raw_size() localVariable 55 l += packet.marshal_size(); in raw_size() 57 l in raw_size() 78 let l = self.raw_size(); in marshal_size() localVariable 80 l + get_padding_size(l) in marshal_size()
|
| /webrtc/rtp/src/codecs/vp8/ |
| H A D | vp8_test.rs | 33 assert_eq!(pck.l, 0, "L must be 0"); in test_vp8_unmarshal() 43 assert_eq!(pck.l, 0, "L must be 0"); in test_vp8_unmarshal() 53 assert_eq!(pck.l, 1, "L must be 1"); in test_vp8_unmarshal() 63 assert_eq!(pck.l, 0, "L must be 0"); in test_vp8_unmarshal() 73 assert_eq!(pck.l, 0, "L must be 0"); in test_vp8_unmarshal() 85 assert_eq!(pck.l, 1, "L must be 1"); in test_vp8_unmarshal() 97 assert_eq!(pck.l, 1, "L must be 1"); in test_vp8_unmarshal()
|
| H A D | mod.rs | 130 pub l: u8, field 186 self.l = (b & 0x40) >> 6; in depacketize() 208 if self.l == 1 { in depacketize()
|
| /webrtc/sctp/src/chunk/ |
| H A D | chunk_heartbeat_ack.rs | 111 let mut l = 0; in value_length() localVariable 114 l += p_len; in value_length() 116 l += get_padding_size(p_len); in value_length() 119 l in value_length()
|
| H A D | chunk_reconfig.rs | 112 let mut l = PARAM_HEADER_LENGTH; in value_length() localVariable 114 l += param_a.value_length(); in value_length() 121 l += PARAM_HEADER_LENGTH + param_b.value_length() + padding; in value_length() 123 l in value_length()
|
| H A D | chunk_init.rs | 274 let mut l = 4 + 4 + 2 + 2 + 4; in value_length() localVariable 277 l += p_len; in value_length() 279 l += get_padding_size(p_len); in value_length() 282 l in value_length()
|
| /webrtc/turn/benches/ |
| H A D | bench.rs | 106 let l = Lifetime(Duration::from_secs(1)); in benchmark_lifetime() localVariable 109 l.add_to(&mut m).unwrap(); in benchmark_lifetime() 119 let mut l = Lifetime::default(); in benchmark_lifetime() localVariable 122 l.get_from(&m).unwrap(); in benchmark_lifetime() 123 assert_eq!(l, expected); in benchmark_lifetime()
|
| /webrtc/util/src/conn/ |
| H A D | conn_pipe.rs | 41 let l = std::cmp::min(v.len(), b.len()); in recv() localVariable 42 b[..l].copy_from_slice(&v[..l]); in recv() 43 Ok(l) in recv()
|
| H A D | conn_udp_listener.rs | 107 let l = ListenerImpl { in listen() localVariable 116 let pconn = Arc::clone(&l.pconn); in listen() 117 let accepting = Arc::clone(&l.accepting); in listen() 119 let accept_ch_tx = Arc::clone(&l.accept_ch_tx); in listen() 120 let conns = Arc::clone(&l.conns); in listen() 133 Ok(l) in listen()
|
| /webrtc/dtls/src/extension/ |
| H A D | renegotiation_info.rs | 37 let l = reader.read_u16::<BigEndian>()?; //length in unmarshal() localVariable 38 if l != 1 { in unmarshal()
|
| /webrtc/rtcp/src/payload_feedbacks/picture_loss_indication/ |
| H A D | mod.rs | 72 let l = self.raw_size(); in marshal_size() localVariable 74 l + get_padding_size(l) in marshal_size()
|
| /webrtc/rtcp/src/transport_feedbacks/rapid_resynchronization_request/ |
| H A D | mod.rs | 74 let l = self.raw_size(); in marshal_size() localVariable 76 l + get_padding_size(l) in marshal_size()
|
| /webrtc/rtcp/src/source_description/ |
| H A D | mod.rs | 92 let l = self.raw_size(); in marshal_size() localVariable 94 l + get_padding_size(l) in marshal_size() 333 let l = self.raw_size(); in marshal_size() localVariable 335 l + get_padding_size(l) in marshal_size()
|
| /webrtc/rtcp/src/ |
| H A D | raw_packet.rs | 56 let l = self.raw_size(); in marshal_size() localVariable 58 l + get_padding_size(l) in marshal_size()
|
| H A D | reception_report.rs | 85 let l = self.raw_size(); in marshal_size() localVariable 87 l + get_padding_size(l) in marshal_size()
|
| /webrtc/mdns/src/message/ |
| H A D | packer.rs | 69 let l = field.len(); in pack_str() localVariable 70 if l > 255 { in pack_str() 73 msg.push(l as u8); in pack_str()
|
| /webrtc/rtcp/src/payload_feedbacks/full_intra_request/ |
| H A D | mod.rs | 83 let l = self.raw_size(); in marshal_size() localVariable 85 l + get_padding_size(l) in marshal_size()
|
| /webrtc/rtcp/src/goodbye/ |
| H A D | mod.rs | 75 let l = self.raw_size(); in marshal_size() localVariable 77 l + get_padding_size(l) in marshal_size()
|