Home
last modified time | relevance | path

Searched refs:l (Results 1 – 25 of 48) sorted by relevance

12

/webrtc/turn/src/proto/lifetime/
H A Dlifetime_test.rs5 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 Dmod.rs15 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 Dchandata.rs9 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 Daddr.rs80 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 Dfingerprint.rs41 let l = m.length; in add_to() localVariable
47 m.length = l; in add_to()
H A Dattributes.rs191 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 Dopt.rs68 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 Dmod.rs53 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 Dvp8_test.rs33 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 Dmod.rs130 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 Dchunk_heartbeat_ack.rs111 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 Dchunk_reconfig.rs112 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 Dchunk_init.rs274 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 Dbench.rs106 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 Dconn_pipe.rs41 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 Dconn_udp_listener.rs107 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 Drenegotiation_info.rs37 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 Dmod.rs72 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 Dmod.rs74 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 Dmod.rs92 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 Draw_packet.rs56 let l = self.raw_size(); in marshal_size() localVariable
58 l + get_padding_size(l) in marshal_size()
H A Dreception_report.rs85 let l = self.raw_size(); in marshal_size() localVariable
87 l + get_padding_size(l) in marshal_size()
/webrtc/mdns/src/message/
H A Dpacker.rs69 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 Dmod.rs83 let l = self.raw_size(); in marshal_size() localVariable
85 l + get_padding_size(l) in marshal_size()
/webrtc/rtcp/src/goodbye/
H A Dmod.rs75 let l = self.raw_size(); in marshal_size() localVariable
77 l + get_padding_size(l) in marshal_size()

12