Home
last modified time | relevance | path

Searched refs:pack (Results 1 – 19 of 19) sorted by relevance

/webrtc/mdns/src/message/
H A Dquestion.rs28 pub fn pack( in pack() method
34 msg = self.name.pack(msg, compression, compression_off)?; in pack()
35 msg = self.typ.pack(msg); in pack()
36 Ok(self.class.pack(msg)) in pack()
H A Dmod.rs102 pub(crate) fn pack(&self, msg: Vec<u8>) -> Vec<u8> { in pack() method
146 pub(crate) fn pack(&self, msg: Vec<u8>) -> Vec<u8> { in pack() method
281 pub fn pack(&mut self) -> Result<Vec<u8>> { in pack() method
304 let (id, bits) = self.header.pack(); in append_pack()
321 let mut msg = h.pack(b); in append_pack()
334 msg = question.pack(msg, &mut compression, compression_off)?; in append_pack()
337 msg = answer.pack(msg, &mut compression, compression_off)?; in append_pack()
340 msg = authority.pack(msg, &mut compression, compression_off)?; in append_pack()
343 msg = additional.pack(msg, &mut compression, compression_off)?; in append_pack()
H A Dbuilder.rs50 let (id, bits) = h.pack(); in new()
153 msg = q.pack(msg, &mut self.compression, self.start)?; in add_question()
182 let (mut msg, len_off) = r.header.pack(msg, &mut self.compression, self.start)?; in add_resource()
185 msg = body.pack(msg, &mut self.compression, self.start)?; in add_resource()
203 let buf = self.header.pack(vec![]); in finish()
H A Dmessage_test.rs362 let buf = name.pack(buf, &mut compression, 0)?; in test_incompressible_name()
473 let b = want.pack(vec![], &mut None, 0)?; in test_srv_pack_unpack()
499 let b = want.pack()?; in test_dns_pack_unpack()
539 let buf = msg.pack()?; in test_skip_all()
562 let buf = msg.pack()?; in test_skip_each()
605 let buf = msg.pack()?; in test_skip_after_read()
738 if let Err(got) = msg.pack() { in test_too_many_records()
1043 let want = msg.pack()?; in test_builder()
1131 if let Err(err) = m.pack() { in test_resource_pack()
1154 let buf = r.pack(vec![], &mut None, 0)?; in test_resource_pack_length()
[all …]
H A Dheader.rs34 pub fn pack(&self) -> (u16, u16) { in pack() method
121 pub(crate) fn pack(&self, mut msg: Vec<u8>) -> Vec<u8> { in pack() method
H A Dname.rs40 pub fn pack( in pack() method
/webrtc/mdns/src/message/resource/
H A Dmod.rs62 pub fn pack( in pack() method
73 let (mut msg, len_off) = self.header.pack(msg, compression, compression_off)?; in pack()
76 msg = body.pack(msg, compression, compression_off)?; in pack()
145 pub fn pack( in pack() method
151 msg = self.name.pack(msg, compression, compression_off)?; in pack()
152 msg = self.typ.pack(msg); in pack()
153 msg = self.class.pack(msg); in pack()
240 fn pack( in pack() method
H A Dptr.rs23 fn pack( in pack() method
29 self.ptr.pack(msg, compression, compression_off) in pack()
H A Dcname.rs22 fn pack( in pack() method
28 self.cname.pack(msg, compression, compression_off) in pack()
H A Dns.rs23 fn pack( in pack() method
29 self.ns.pack(msg, compression, compression_off) in pack()
H A Dsoa.rs44 fn pack( in pack() method
50 msg = self.ns.pack(msg, compression, compression_off)?; in pack()
51 msg = self.mbox.pack(msg, compression, compression_off)?; in pack()
H A Dmx.rs29 fn pack( in pack() method
36 msg = self.mx.pack(msg, compression, compression_off)?; in pack()
H A Dsrv.rs31 fn pack( in pack() method
40 msg = self.target.pack(msg, &mut None, compression_off)?; in pack()
H A Da.rs22 fn pack( in pack() method
H A Daaaa.rs22 fn pack( in pack() method
H A Dtxt.rs27 fn pack( in pack() method
H A Dopt.rs47 fn pack( in pack() method
/webrtc/mdns/src/conn/
H A Dmod.rs228 match msg.pack() { in send_question()
417 msg.pack()? in send_answer()
/webrtc/sctp/src/association/
H A Dassociation_internal.rs2070 fn pack(p: Packet) -> Vec<Packet> { in pack() method