Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 154) sorted by relevance

1234567

/webrtc/media/src/io/sample_builder/
H A Dsample_builder_test.rs6 macro_rules! bytes { macro
17 head_bytes: Vec<bytes::Bytes>,
26 head_bytes: Vec<bytes::Bytes>,
80 payload: bytes!(1), in test_sample_builder()
239 data: bytes!(1), in test_sample_builder()
1239 payload: bytes!(0x01), in test_sample_builder_max_late()
1247 payload: bytes!(0x01), in test_sample_builder_max_late()
1255 payload: bytes!(0x01), in test_sample_builder_max_late()
1274 payload: bytes!(0x02), in test_sample_builder_max_late()
1282 payload: bytes!(0x02), in test_sample_builder_max_late()
[all …]
/webrtc/data/src/message/
H A Dmessage_test.rs5 use bytes::{Bytes, BytesMut};
9 let mut bytes = Bytes::from_static(&[ in test_message_unmarshal_open_success() localVariable
20 let actual = Message::unmarshal(&mut bytes).unwrap(); in test_message_unmarshal_open_success()
35 let mut bytes = Bytes::from_static(&[0x02]); in test_message_unmarshal_ack_success() localVariable
37 let actual = Message::unmarshal(&mut bytes)?; in test_message_unmarshal_ack_success()
47 let mut bytes = Bytes::from_static(&[0x01]); in test_message_unmarshal_invalid_message_type() localVariable
49 let result = Message::unmarshal(&mut bytes); in test_message_unmarshal_invalid_message_type()
82 let bytes = buf.freeze(); in test_message_marshal() localVariable
84 let actual = &bytes[..]; in test_message_marshal()
H A Dmessage_type.rs64 use bytes::{Bytes, BytesMut};
68 let mut bytes = Bytes::from_static(&[0x03]); in test_message_type_unmarshal_open_success() localVariable
69 let msg_type = MessageType::unmarshal(&mut bytes)?; in test_message_type_unmarshal_open_success()
78 let mut bytes = Bytes::from_static(&[0x02]); in test_message_type_unmarshal_ack_success() localVariable
79 let msg_type = MessageType::unmarshal(&mut bytes)?; in test_message_type_unmarshal_ack_success()
87 let mut bytes = Bytes::from_static(&[0x01]); in test_message_type_unmarshal_invalid() localVariable
88 match MessageType::unmarshal(&mut bytes) { in test_message_type_unmarshal_invalid()
118 let bytes = buf.freeze(); in test_message_type_marshal() localVariable
121 assert_eq!(&bytes[..], &[0x02]); in test_message_type_marshal()
H A Dmessage_channel_open.rs234 use bytes::{Bytes, BytesMut};
238 let mut bytes = Bytes::from_static(&[0x00]); in test_channel_type_unmarshal_success() localVariable
248 match ChannelType::unmarshal(&mut bytes) { in test_channel_type_unmarshal_invalid()
265 let mut bytes = Bytes::from_static(&[]); in test_channel_type_unmarshal_unexpected_end_of_buffer() localVariable
266 match ChannelType::unmarshal(&mut bytes) { in test_channel_type_unmarshal_unexpected_end_of_buffer()
302 let bytes = buf.freeze(); in test_channel_type_marshal() localVariable
303 assert_eq!(&bytes[..], &[0x00]); in test_channel_type_marshal()
333 let mut bytes = Bytes::from_static(&[ in test_channel_open_unmarshal_invalid_channel_type() localVariable
379 let mut bytes = Bytes::from_static(&[ in test_channel_open_unmarshal_unexpected_length_mismatch() localVariable
434 let bytes = buf.freeze(); in test_channel_open_marshal() localVariable
[all …]
H A Dmessage_channel_ack.rs44 use bytes::{Bytes, BytesMut};
48 let mut bytes = Bytes::from_static(&[]); in test_channel_ack_unmarshal() localVariable
50 let channel_ack = DataChannelAck::unmarshal(&mut bytes)?; in test_channel_ack_unmarshal()
70 let bytes = buf.freeze(); in test_channel_ack_marshal() localVariable
73 assert_eq!(&bytes[..], &[]); in test_channel_ack_marshal()
/webrtc/sctp/fuzz/fuzz_targets/
H A Dparam.rs5 use bytes::Bytes;
8 let bytes = Bytes::from(data.to_vec()); localVariable
9 build_param(&bytes);
H A Dpacket.rs5 use bytes::Bytes;
8 let bytes = Bytes::from(data.to_vec()); localVariable
9 Packet::unmarshal(&bytes);
/webrtc/rtcp/src/extended_report/
H A Dunknown.rs7 pub bytes: Bytes, field
37 XR_HEADER_LENGTH + self.bytes.len() in raw_size()
71 buf.put(self.bytes.clone()); in marshal_to()
94 let bytes = raw_packet.copy_to_bytes(block_length as usize); in unmarshal() localVariable
96 Ok(UnknownReportBlock { bytes }) in unmarshal()
/webrtc/media/src/audio/
H A Dbuffer.rs29 bytes: &mut [u8], in to_bytes()
187 assert_eq!(bytes.len() % STRIDE, 0); in from_bytes()
190 let chunks_ptr = bytes.as_ptr() as *const [u8; STRIDE]; in from_bytes()
191 let chunks_len = bytes.len() / STRIDE; in from_bytes()
210 assert_eq!(bytes.len() % STRIDE, 0); in from_bytes()
213 let chunks_ptr = bytes.as_ptr() as *const [u8; STRIDE]; in from_bytes()
214 let chunks_len = bytes.len() / STRIDE; in from_bytes()
247 assert_eq!(bytes.len() % STRIDE, 0); in from_bytes()
251 let chunks_len = bytes.len() / STRIDE; in from_bytes()
270 assert_eq!(bytes.len() % STRIDE, 0); in from_bytes()
[all …]
/webrtc/webrtc/src/data_channel/
H A Ddata_channel_message.rs1 use bytes::Bytes;
/webrtc/sctp/examples/
H A Dthroughput.rs128 let bytes = bytes::Bytes::from(buf); in main() localVariable
132 while stream.write(&bytes).await.is_ok() { in main()
/webrtc/data/src/data_channel/
H A Dmod.rs15 use bytes::{Buf, Bytes};
109 label: config.label.bytes().collect(), in client()
110 protocol: config.protocol.bytes().collect(), in client()
567 let bytes = Bytes::copy_from_slice(buf); in poll_write() localVariable
569 Some(Box::pin(async move { data_channel.write(&bytes).await })); in poll_write()
578 let bytes = Bytes::copy_from_slice(buf); in poll_write() localVariable
580 Some(Box::pin(async move { data_channel.write(&bytes).await })); in poll_write()
586 let bytes = Bytes::copy_from_slice(buf); in poll_write() localVariable
589 .insert(Box::pin(async move { data_channel.write(&bytes).await })); in poll_write()
/webrtc/rtp/src/extension/video_orientation_extension/
H A Dmod.rs6 use bytes::BufMut;
71 B: bytes::Buf, in unmarshal()
/webrtc/srtp/src/cipher/
H A Dmod.rs4 use bytes::Bytes;
/webrtc/util/src/marshal/
H A Dmod.rs3 use bytes::{Buf, Bytes, BytesMut};
/webrtc/sctp/fuzz/
H A DCargo.toml13 bytes = "*"
/webrtc/rtcp/
H A DCargo.toml16 bytes = "1"
/webrtc/sctp/src/
H A Dfuzz_artifact_test.rs12 use bytes::Bytes;
/webrtc/sctp/src/chunk/
H A Dchunk_cookie_ack.rs3 use bytes::{Bytes, BytesMut};
H A Dchunk_shutdown_complete.rs3 use bytes::{Bytes, BytesMut};
H A Dchunk_shutdown_ack.rs3 use bytes::{Bytes, BytesMut};
/webrtc/sctp/src/param/
H A Dparam_forward_tsn_supported.rs3 use bytes::{Bytes, BytesMut};
/webrtc/rtp/src/codecs/g7xx/
H A Dmod.rs7 use bytes::Bytes;
/webrtc/rtp/
H A DCargo.toml16 bytes = "1"
/webrtc/rtp/src/extension/transport_cc_extension/
H A Dtransport_cc_extension_test.rs3 use bytes::{Bytes, BytesMut};

1234567