| /webrtc/rtcp/src/ |
| H A D | util.rs | 30 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 D | fingerprint.rs | 45 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 D | attributes.rs | 202 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 D | mod.rs | 11 fn from(val: u8) -> Self { in from() 12 match val { in from()
|
| H A D | named_curve.rs | 16 fn from(val: u16) -> Self { in from() 17 match val { in from()
|
| /webrtc/dtls/src/ |
| H A D | client_certificate_type.rs | 9 fn from(val: u8) -> Self { in from() 10 match val { in from()
|
| H A D | compression_methods.rs | 13 fn from(val: u8) -> Self { in from() 14 match val { in from()
|
| H A D | content.rs | 21 fn from(val: u8) -> Self { in from() 22 match val { in from()
|
| /webrtc/dtls/src/signature_hash_algorithm/ |
| H A D | mod.rs | 26 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 D | mod.rs | 29 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 D | transaction.rs | 185 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 D | extension_use_srtp.rs | 19 fn from(val: u16) -> Self { in from() 20 match val { in from()
|
| H A D | mod.rs | 36 fn from(val: u16) -> Self { in from() 37 match val { in from()
|
| /webrtc/rtcp/src/transport_feedbacks/transport_layer_cc/ |
| H A D | mod.rs | 77 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 D | mod.rs | 251 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 D | candidate_base.rs | 210 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 D | mod.rs | 81 fn from(val: u16) -> Self { in from() 82 match val { in from()
|
| /webrtc/srtp/src/cipher/ |
| H A D | cipher_aead_aes_gcm.rs | 131 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 D | mod.rs | 61 if let Some(val) = value { in key_value_build()
|
| /webrtc/dtls/src/handshake/ |
| H A D | mod.rs | 74 fn from(val: u8) -> Self { in from() 75 match val { in from()
|
| /webrtc/ice/examples/ |
| H A D | ping_pong.rs | 329 let val: String = (0..15) in main() localVariable 341 result = conn_tx.send(val.as_bytes()) => { in main()
|
| /webrtc/dtls/src/conn/ |
| H A D | mod.rs | 412 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 D | session.rs | 1350 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()
|