| /webrtc/dtls/src/handshake/ |
| H A D | mod.rs | 138 pub fn marshal<W: Write>(&self, writer: &mut W) -> Result<()> { in marshal() method 140 HandshakeMessage::ClientHello(msg) => msg.marshal(writer)?, in marshal() 141 HandshakeMessage::ServerHello(msg) => msg.marshal(writer)?, in marshal() 143 HandshakeMessage::Certificate(msg) => msg.marshal(writer)?, in marshal() 144 HandshakeMessage::ServerKeyExchange(msg) => msg.marshal(writer)?, in marshal() 146 HandshakeMessage::ServerHelloDone(msg) => msg.marshal(writer)?, in marshal() 147 HandshakeMessage::CertificateVerify(msg) => msg.marshal(writer)?, in marshal() 149 HandshakeMessage::Finished(msg) => msg.marshal(writer)?, in marshal() 190 pub fn marshal<W: Write>(&self, writer: &mut W) -> Result<()> { in marshal() method 191 self.handshake_header.marshal(writer)?; in marshal() [all …]
|
| H A D | handshake_message_client_hello.rs | 103 pub fn marshal<W: Write>(&self, writer: &mut W) -> Result<()> { in marshal() method 110 self.random.marshal(writer)?; in marshal() 123 self.compression_methods.marshal(writer)?; in marshal() 129 extension.marshal(&mut extension_writer)?; in marshal()
|
| H A D | handshake_message_server_hello.rs | 77 pub fn marshal<W: Write>(&self, writer: &mut W) -> Result<()> { in marshal() method 80 self.random.marshal(writer)?; in marshal() 93 extension.marshal(&mut extension_writer)?; in marshal()
|
| H A D | handshake_message_server_hello_done.rs | 20 pub fn marshal<W: Write>(&self, _writer: &mut W) -> Result<()> { in marshal() method
|
| /webrtc/dtls/src/extension/ |
| H A D | mod.rs | 90 pub fn marshal<W: Write>(&self, writer: &mut W) -> Result<()> { in marshal() method 93 Extension::ServerName(ext) => ext.marshal(writer), in marshal() 94 Extension::SupportedEllipticCurves(ext) => ext.marshal(writer), in marshal() 95 Extension::SupportedPointFormats(ext) => ext.marshal(writer), in marshal() 96 Extension::SupportedSignatureAlgorithms(ext) => ext.marshal(writer), in marshal() 97 Extension::UseSrtp(ext) => ext.marshal(writer), in marshal() 98 Extension::UseExtendedMasterSecret(ext) => ext.marshal(writer), in marshal() 99 Extension::RenegotiationInfo(ext) => ext.marshal(writer), in marshal()
|
| /webrtc/rtcp/src/payload_feedbacks/receiver_estimated_maximum_bitrate/ |
| H A D | receiver_estimated_maximum_bitrate_test.rs | 16 let output = input.marshal().unwrap(); in test_receiver_estimated_maximum_bitrate_marshal() 58 let output = packet.marshal().unwrap(); in test_receiver_estimated_maximum_bitrate_truncate() 68 let mut output = packet.marshal().unwrap(); in test_receiver_estimated_maximum_bitrate_truncate() 99 let output = packet.marshal().unwrap(); in test_receiver_estimated_maximum_bitrate_overflow() 111 let output = packet.marshal().unwrap(); in test_receiver_estimated_maximum_bitrate_overflow()
|
| /webrtc/dtls/src/ |
| H A D | content.rs | 59 pub fn marshal<W: Write>(&self, writer: &mut W) -> Result<()> { in marshal() method 61 Content::ChangeCipherSpec(c) => c.marshal(writer), in marshal() 62 Content::Alert(c) => c.marshal(writer), in marshal() 63 Content::Handshake(c) => c.marshal(writer), in marshal() 64 Content::ApplicationData(c) => c.marshal(writer), in marshal()
|
| H A D | state.rs | 118 self.local_random.marshal(&mut writer)?; in serialize() 123 self.remote_random.marshal(&mut writer)?; in serialize() 211 self.local_random.marshal(&mut writer)?; in init_cipher_suite() 216 self.remote_random.marshal(&mut writer)?; in init_cipher_suite() 277 self.local_random.marshal(&mut writer)?; in export_keying_material() 282 self.remote_random.marshal(&mut writer)?; in export_keying_material()
|
| /webrtc/sdp/src/extmap/ |
| H A D | extmap_test.rs | 34 actual.marshal(), in test_extmap() 39 actual.marshal() in test_extmap() 66 let s = e.marshal(); in test_transport_cc_extmap()
|
| /webrtc/rtp/benches/ |
| H A D | packet_bench.rs | 7 use util::marshal::{Marshal, MarshalSize, Unmarshal}; 30 let raw = pkt.marshal().unwrap(); in benchmark_packet() 48 let _ = pkt.marshal().unwrap(); in benchmark_packet()
|
| /webrtc/srtp/src/context/ |
| H A D | srtp_test.rs | 2 use util::marshal::*; 106 let pkt_raw = pkt.marshal()?; in test_rtp_invalid_auth() 135 let decrypted_raw = decrypted_pkt.marshal()?; in test_rtp_lifecyle() 145 let encrypted_raw = encrypted_pkt.marshal()?; in test_rtp_lifecyle()
|
| /webrtc/sctp/src/chunk/ |
| H A D | chunk_test.rs | 57 let b = abort1.marshal()?; in test_abort_chunk_one_error_cause() 89 let b = abort1.marshal()?; in test_abort_chunk_many_error_causes() 156 let raw = ec.marshal()?; in test_chunk_error_unrecognized_chunk_type_marshal() 175 let raw = ec.marshal()?; in test_chunk_error_unrecognized_chunk_type_marshal_with_cause_value_being_nil() 201 let b = actual.marshal()?; in test_chunk_forward_tsn_success() 294 let b = actual.marshal()?; in test_chunk_reconfig_success() 341 let b = actual.marshal()?; in test_chunk_shutdown_success() 392 let b = actual.marshal()?; in test_chunk_shutdown_ack_success() 432 let b = actual.marshal()?; in test_chunk_shutdown_complete_success() 537 let raw_pkt2 = pkt.marshal()?; in test_chrome_chunk1_init() [all …]
|
| /webrtc/sctp/src/param/ |
| H A D | param_test.rs | 43 let b = actual.marshal()?; in test_param_header_success() 87 let b = actual.marshal()?; in test_param_forward_tsn_supported_success() 145 let b = actual.marshal()?; in test_param_outgoing_reset_request_success() 189 let b = actual.marshal()?; in test_param_reconfig_response_success() 250 let b = p.marshal()?; in test_build_param_success()
|
| /webrtc/dtls/src/record_layer/ |
| H A D | mod.rs | 52 pub fn marshal<W: Write>(&self, writer: &mut W) -> Result<()> { in marshal() method 53 self.record_layer_header.marshal(writer)?; in marshal() 54 self.content.marshal(writer)?; in marshal()
|
| /webrtc/webrtc/src/peer_connection/sdp/ |
| H A D | session_description.rs | 163 assert_eq!(answer.unmarshal()?.marshal(), desc.unmarshal()?.marshal()); in test_session_description_answer() 182 assert_eq!(offer.unmarshal()?.marshal(), desc.unmarshal()?.marshal()); in test_session_description_offer() 234 assert_eq!(parsed1.marshal(), parsed2.marshal()); in test_session_description_unmarshal()
|
| /webrtc/sdp/src/description/ |
| H A D | description_test.rs | 40 let output = sdp.marshal(); in test_unmarshal_marshal() 173 let actual = sd.marshal(); in test_marshal() 536 let actual = sdp.marshal(); in test_round_trip() 554 let actual = sdp.marshal(); in test_unmarshal_repeat_times() 575 let actual = sdp.marshal(); in test_unmarshal_time_zones() 586 let output = sdp.marshal(); in test_unmarshal_non_nil_address()
|
| /webrtc/util/src/ |
| H A D | lib.rs | 75 pub mod marshal; module 84 pub use crate::marshal::{exact_size_buf::ExactSizeBuf, Marshal, MarshalSize, Unmarshal};
|
| /webrtc/rtcp/src/ |
| H A D | raw_packet.rs | 3 use util::marshal::{Marshal, MarshalSize, Unmarshal}; 88 let raw_hdr = h.marshal()?; in unmarshal() 130 let result = pkt.marshal(); in test_raw_packet_roundtrip()
|
| H A D | packet.rs | 11 use util::marshal::{Marshal, Unmarshal}; 42 pub fn marshal(packets: &[Box<dyn Packet + Send + Sync>]) -> Result<Bytes> { in marshal() function 45 let data = p.marshal()?; in marshal() 90 let mut in_packet = h.marshal()?.chain(raw_data.take(length)); in unmarshaller()
|
| /webrtc/util/ |
| H A D | Cargo.toml | 16 default = ["buffer", "conn", "ifaces", "vnet", "marshal", "sync"] 21 marshal = []
|
| /webrtc/dtls/src/extension/extension_server_name/ |
| H A D | extension_server_name_test.rs | 14 extension.marshal(&mut writer)?; in test_extension_server_name()
|
| /webrtc/dtls/src/extension/renegotiation_info/ |
| H A D | renegotiation_info_test.rs | 14 extension.marshal(&mut writer)?; in test_renegotiation_info()
|
| /webrtc/dtls/src/handshake/handshake_message_server_hello_done/ |
| H A D | handshake_message_server_hello_done_test.rs | 20 c.marshal(&mut writer)?; in test_handshake_message_server_hello_done()
|
| /webrtc/dtls/src/extension/extension_use_extended_master_secret/ |
| H A D | extension_use_extended_master_secret_test.rs | 14 parsed_extension_use_extended_master_secret.marshal(&mut writer)?; in test_extension_use_extended_master_secret()
|
| /webrtc/dtls/src/extension/extension_supported_elliptic_curves/ |
| H A D | extension_supported_elliptic_curves_test.rs | 15 parsed_supported_groups.marshal(&mut writer)?; in test_extension_supported_groups()
|