Home
last modified time | relevance | path

Searched refs:val (Results 1 – 23 of 23) sorted by relevance

/webrtc/rtcp/src/
H A Dutil.rs30 mut val: u16, in set_nbits_of_uint16()
37 val &= (1 << size) - 1; in set_nbits_of_uint16()
39 Ok(src | (val << (16 - size - start_index))) in set_nbits_of_uint16()
43 pub(crate) fn append_nbits_to_uint32(src: u32, n: u32, val: u32) -> u32 { in append_nbits_to_uint32()
44 (src << n) | (val & (0xFFFFFFFF >> (32 - n))) in append_nbits_to_uint32()
/webrtc/stun/src/
H A Dfingerprint.rs45 let val = fingerprint_value(&m.raw); in add_to() localVariable
46 let b = val.to_be_bytes(); in add_to()
59 let val = u32::from_be_bytes([b[0], b[1], b[2], b[3]]); in check() localVariable
62 check_fingerprint(val, expected) in check()
H A Dattributes.rs202 pub(crate) fn compat_attr_type(val: u16) -> AttrType { in compat_attr_type()
203 if val == 0x8020 { in compat_attr_type()
207 AttrType(val) in compat_attr_type()
/webrtc/dtls/src/curve/
H A Dmod.rs11 fn from(val: u8) -> Self { in from()
12 match val { in from()
H A Dnamed_curve.rs16 fn from(val: u16) -> Self { in from()
17 match val { in from()
/webrtc/dtls/src/
H A Dclient_certificate_type.rs9 fn from(val: u8) -> Self { in from()
10 match val { in from()
H A Dcompression_methods.rs13 fn from(val: u8) -> Self { in from()
14 match val { in from()
H A Dcontent.rs21 fn from(val: u8) -> Self { in from()
22 match val { in from()
/webrtc/dtls/src/signature_hash_algorithm/
H A Dmod.rs26 fn from(val: u8) -> Self { in from()
27 match val { in from()
80 fn from(val: u8) -> Self { in from()
81 match val { in from()
/webrtc/dtls/src/alert/
H A Dmod.rs29 fn from(val: u8) -> Self { in from()
30 match val { in from()
102 fn from(val: u8) -> Self { in from()
103 match val { in from()
/webrtc/turn/src/client/
H A Dtransaction.rs185 let mut val = interval.load(Ordering::SeqCst); in start_rtx_timer() localVariable
186 val *= 2; in start_rtx_timer()
187 if val > MAX_RTX_INTERVAL_IN_MS { in start_rtx_timer()
188 val = MAX_RTX_INTERVAL_IN_MS; in start_rtx_timer()
190 interval.store(val, Ordering::SeqCst); in start_rtx_timer()
/webrtc/dtls/src/extension/
H A Dextension_use_srtp.rs19 fn from(val: u16) -> Self { in from()
20 match val { in from()
H A Dmod.rs36 fn from(val: u16) -> Self { in from()
37 match val { in from()
/webrtc/rtcp/src/transport_feedbacks/transport_layer_cc/
H A Dmod.rs77 fn from(val: u16) -> Self { in from()
78 match val { in from()
86 fn from(val: u16) -> Self { in from()
87 match val { in from()
95 fn from(val: u16) -> Self { in from()
96 match val { in from()
/webrtc/webrtc/src/sctp_transport/
H A Dmod.rs251 let val = dc.config.reliability_parameter as u16; in accept_data_channels() localVariable
263 max_retransmits = val; in accept_data_channels()
267 max_retransmits = val; in accept_data_channels()
271 max_packet_lifetime = val; in accept_data_channels()
275 max_packet_lifetime = val; in accept_data_channels()
/webrtc/ice/src/candidate/
H A Dcandidate_base.rs210 let mut val = format!( in marshal() localVariable
222 val += format!(" tcptype {}", self.tcp_type()).as_str(); in marshal()
226 val += format!( in marshal()
233 val in marshal()
/webrtc/dtls/src/cipher_suite/
H A Dmod.rs81 fn from(val: u16) -> Self { in from()
82 match val { in from()
/webrtc/srtp/src/cipher/
H A Dcipher_aead_aes_gcm.rs131 let val = BigEndian::read_u32(&input[pos..]); in get_rtcp_index() localVariable
133 (val & !((RTCP_ENCRYPTION_FLAG as u32) << 24)) as usize in get_rtcp_index()
/webrtc/sdp/src/lexer/
H A Dmod.rs61 if let Some(val) = value { in key_value_build()
/webrtc/dtls/src/handshake/
H A Dmod.rs74 fn from(val: u8) -> Self { in from()
75 match val { in from()
/webrtc/ice/examples/
H A Dping_pong.rs329 let val: String = (0..15) in main() localVariable
341 result = conn_tx.send(val.as_bytes()) => { in main()
/webrtc/dtls/src/conn/
H A Dmod.rs412 Ok(val) => { in read()
413 let n = val.len(); in read()
417 p[..n].copy_from_slice(&val); in read()
/webrtc/sdp/src/description/
H A Dsession.rs1350 let val = value.as_bytes(); in parse_time_units() localVariable
1351 let len = val.len(); in parse_time_units()
1352 let (num, factor) = match val.last() { in parse_time_units()