Home
last modified time | relevance | path

Searched refs:BytesMut (Results 1 – 25 of 66) sorted by relevance

123

/webrtc/util/src/marshal/
H A Dexact_size_buf.rs7 Bytes, BytesMut,
37 impl ExactSizeBuf for BytesMut { implementation
40 BytesMut::len(self) in len()
45 BytesMut::is_empty(self) in is_empty()
H A Dmod.rs3 use bytes::{Buf, Bytes, BytesMut};
16 let mut buf = BytesMut::with_capacity(l); in marshal()
/webrtc/rtp/src/extension/video_orientation_extension/
H A Dvideo_orientation_extension_test.rs3 use bytes::{Bytes, BytesMut};
26 let mut dst = BytesMut::with_capacity(a2.marshal_size()); in test_video_orientation_extension_back_facing_camera()
46 let mut dst = BytesMut::with_capacity(a2.marshal_size()); in test_video_orientation_extension_flip_true()
66 let mut dst = BytesMut::with_capacity(a2.marshal_size()); in test_video_orientation_extension_degree_90()
86 let mut dst = BytesMut::with_capacity(a2.marshal_size()); in test_video_orientation_extension_degree_180()
106 let mut dst = BytesMut::with_capacity(a2.marshal_size()); in test_video_orientation_extension_degree_270()
/webrtc/rtp/src/extension/audio_level_extension/
H A Daudio_level_extension_test.rs3 use bytes::{Bytes, BytesMut};
25 let mut dst = BytesMut::with_capacity(a2.marshal_size()); in test_audio_level_extension_voice_true()
44 let mut dst = BytesMut::with_capacity(a2.marshal_size()); in test_audio_level_extension_voice_false()
59 let mut dst = BytesMut::with_capacity(a.marshal_size()); in test_audio_level_extension_level_overflow()
/webrtc/sctp/src/chunk/
H A Dmod.rs25 use bytes::{Bytes, BytesMut};
34 fn marshal_to(&self, buf: &mut BytesMut) -> Result<usize>; in marshal_to()
41 let mut buf = BytesMut::with_capacity(capacity); in marshal()
H A Dchunk_cookie_ack.rs3 use bytes::{Bytes, BytesMut};
42 fn marshal_to(&self, buf: &mut BytesMut) -> Result<usize> { in marshal_to()
H A Dchunk_shutdown_complete.rs3 use bytes::{Bytes, BytesMut};
42 fn marshal_to(&self, writer: &mut BytesMut) -> Result<usize> { in marshal_to()
H A Dchunk_shutdown_ack.rs3 use bytes::{Bytes, BytesMut};
42 fn marshal_to(&self, writer: &mut BytesMut) -> Result<usize> { in marshal_to()
H A Dchunk_unknown.rs3 use bytes::{Bytes, BytesMut};
36 fn marshal_to(&self, buf: &mut BytesMut) -> crate::error::Result<usize> { in marshal_to()
H A Dchunk_cookie_echo.rs3 use bytes::{Bytes, BytesMut};
48 fn marshal_to(&self, buf: &mut BytesMut) -> Result<usize> { in marshal_to()
H A Dchunk_shutdown.rs3 use bytes::{Buf, BufMut, Bytes, BytesMut};
56 fn marshal_to(&self, writer: &mut BytesMut) -> Result<usize> { in marshal_to()
/webrtc/sctp/src/param/
H A Dparam_state_cookie.rs3 use bytes::{Bytes, BytesMut};
33 fn marshal_to(&self, buf: &mut BytesMut) -> Result<usize> { in marshal_to()
54 let mut cookie = BytesMut::new(); in new()
H A Dparam_forward_tsn_supported.rs3 use bytes::{Bytes, BytesMut};
35 fn marshal_to(&self, buf: &mut BytesMut) -> Result<usize> { in marshal_to()
H A Dparam_random.rs3 use bytes::{Bytes, BytesMut};
31 fn marshal_to(&self, buf: &mut BytesMut) -> Result<usize> { in marshal_to()
H A Dparam_heartbeat_info.rs3 use bytes::{Bytes, BytesMut};
33 fn marshal_to(&self, buf: &mut BytesMut) -> Result<usize> { in marshal_to()
H A Dparam_header.rs3 use bytes::{Buf, BufMut, Bytes, BytesMut};
46 fn marshal_to(&self, writer: &mut BytesMut) -> Result<usize> { in marshal_to()
H A Dmod.rs31 use bytes::{Buf, Bytes, BytesMut};
39 fn marshal_to(&self, buf: &mut BytesMut) -> Result<usize>; in marshal_to()
46 let mut buf = BytesMut::with_capacity(capacity); in marshal()
/webrtc/media/src/io/h264_reader/
H A Dmod.rs6 use bytes::{BufMut, Bytes, BytesMut};
109 pub data: BytesMut,
113 fn new(data: BytesMut) -> Self { in new()
137 nal_buffer: BytesMut,
149 nal_buffer: BytesMut::new(), in new()
/webrtc/rtp/src/extension/transport_cc_extension/
H A Dtransport_cc_extension_test.rs3 use bytes::{Bytes, BytesMut};
24 let mut dst = BytesMut::with_capacity(t2.marshal_size()); in test_transport_cc_extension()
/webrtc/srtp/src/cipher/
H A Dcipher_aead_aes_gcm.rs6 use bytes::{Bytes, BytesMut};
40 BytesMut::with_capacity(header.marshal_size() + payload.len() + self.auth_tag_len()); in encrypt_rtp()
79 let mut writer = BytesMut::with_capacity(payload_offset + decrypted_msg.len()); in decrypt_rtp()
98 let mut writer = BytesMut::with_capacity(encrypted_data.len() + aad.len()); in encrypt_rtcp()
122 let mut writer = BytesMut::with_capacity(8 + decrypted_data.len()); in decrypt_rtcp()
/webrtc/rtp/src/extension/abs_send_time_extension/
H A Dabs_send_time_extension_test.rs4 use bytes::BytesMut;
78 let mut raw = BytesMut::with_capacity(test.marshal_size()); in test_abs_send_time_extension_roundtrip()
103 let mut raw = BytesMut::with_capacity(send.marshal_size()); in test_abs_send_time_extension_estimate()
/webrtc/data/src/message/
H A Dmessage_channel_ack.rs44 use bytes::{Bytes, BytesMut};
68 let mut buf = BytesMut::with_capacity(0); in test_channel_ack_marshal()
/webrtc/sctp/src/
H A Derror_cause.rs3 use bytes::{Buf, BufMut, Bytes, BytesMut};
115 let mut buf = BytesMut::with_capacity(self.length()); in marshal()
120 pub(crate) fn marshal_to(&self, writer: &mut BytesMut) -> usize { in marshal_to()
/webrtc/media/src/io/ivf_reader/
H A Dmod.rs8 use bytes::BytesMut;
69 pub fn parse_next_frame(&mut self) -> Result<(BytesMut, IVFFrameHeader)> { in parse_next_frame() argument
77 let mut payload = BytesMut::with_capacity(header.frame_size as usize); in parse_next_frame()
/webrtc/rtp/benches/
H A Dpacket_bench.rs4 use bytes::{Bytes, BytesMut};
38 let mut buf = BytesMut::with_capacity(pkt.marshal_size()); in benchmark_packet()

123