Home
last modified time | relevance | path

Searched refs:off (Results 1 – 25 of 34) sorted by relevance

12

/webrtc/mdns/src/message/
H A Dpacker.rs11 let new_off = off + field.len(); in unpack_bytes()
26 if off + UINT16LEN > msg.len() { in unpack_uint16()
31 (msg[off] as u16) << 8 | (msg[off + 1] as u16), in unpack_uint16()
32 off + UINT16LEN, in unpack_uint16()
40 Ok(off + UINT16LEN) in skip_uint16()
53 let v = (msg[off] as u32) << 24 in unpack_uint32()
56 | (msg[off + 3] as u32); in unpack_uint32()
57 Ok((v, off + UINT32LEN)) in unpack_uint32()
64 Ok(off + UINT32LEN) in skip_uint32()
79 if off >= msg.len() { in unpack_str()
[all …]
H A Dparser.rs65 self.off = off; in resource()
79 let off = hdr.unpack(self.msg, self.off, 0)?; in resource_header() localVariable
83 self.off = off; in resource_header()
100 self.off = Resource::skip(self.msg, self.off)?; in skip_resource()
109 let mut off = name.unpack(self.msg, self.off)?; in question() localVariable
111 off = typ.unpack(self.msg, off)?; in question()
113 off = class.unpack(self.msg, off)?; in question()
114 self.off = off; in question()
146 off = DnsType::skip(self.msg, off)?; in skip_question()
147 off = DnsClass::skip(self.msg, off)?; in skip_question()
[all …]
H A Dheader.rs131 pub(crate) fn unpack(&mut self, msg: &[u8], off: usize) -> Result<usize> { in unpack()
132 let (id, off) = unpack_uint16(msg, off)?; in unpack()
135 let (bits, off) = unpack_uint16(msg, off)?; in unpack()
138 let (questions, off) = unpack_uint16(msg, off)?; in unpack()
141 let (answers, off) = unpack_uint16(msg, off)?; in unpack()
144 let (authorities, off) = unpack_uint16(msg, off)?; in unpack()
147 let (additionals, off) = unpack_uint16(msg, off)?; in unpack()
150 Ok(off) in unpack()
H A Dname.rs111 pub fn unpack(&mut self, msg: &[u8], off: usize) -> Result<usize> { in unpack()
112 self.unpack_compressed(msg, off, true /* allowCompression */) in unpack()
118 off: usize, in unpack_compressed()
122 let mut curr_off = off; in unpack_compressed()
127 let mut new_off = off; in unpack_compressed()
195 pub(crate) fn skip(msg: &[u8], off: usize) -> Result<usize> { in skip()
199 let mut new_off = off; in skip()
H A Dmod.rs106 pub(crate) fn unpack(&mut self, msg: &[u8], off: usize) -> Result<usize> { in unpack()
107 let (t, o) = unpack_uint16(msg, off)?; in unpack()
112 pub(crate) fn skip(msg: &[u8], off: usize) -> Result<usize> { in skip()
113 skip_uint16(msg, off) in skip()
150 pub(crate) fn unpack(&mut self, msg: &[u8], off: usize) -> Result<usize> { in unpack()
151 let (c, o) = unpack_uint16(msg, off)?; in unpack()
156 pub(crate) fn skip(msg: &[u8], off: usize) -> Result<usize> { in skip()
157 skip_uint16(msg, off) in skip()
/webrtc/mdns/src/message/resource/
H A Dsoa.rs59 fn unpack(&mut self, msg: &[u8], mut off: usize, _length: usize) -> Result<usize> { in unpack()
60 off = self.ns.unpack(msg, off)?; in unpack()
61 off = self.mbox.unpack(msg, off)?; in unpack()
63 let (serial, off) = unpack_uint32(msg, off)?; in unpack()
66 let (refresh, off) = unpack_uint32(msg, off)?; in unpack()
69 let (retry, off) = unpack_uint32(msg, off)?; in unpack()
72 let (expire, off) = unpack_uint32(msg, off)?; in unpack()
75 let (min_ttl, off) = unpack_uint32(msg, off)?; in unpack()
78 Ok(off) in unpack()
H A Dopt.rs61 fn unpack(&mut self, msg: &[u8], mut off: usize, length: usize) -> Result<usize> { in unpack()
63 let old_off = off; in unpack()
64 while off < old_off + length { in unpack()
65 let (code, new_off) = unpack_uint16(msg, off)?; in unpack()
66 off = new_off; in unpack()
68 let (l, new_off) = unpack_uint16(msg, off)?; in unpack()
69 off = new_off; in unpack()
75 if off + l as usize > msg.len() { in unpack()
78 opt.data.copy_from_slice(&msg[off..off + l as usize]); in unpack()
79 off += l as usize; in unpack()
[all …]
H A Dsrv.rs44 fn unpack(&mut self, msg: &[u8], off: usize, _length: usize) -> Result<usize> { in unpack()
45 let (priority, off) = unpack_uint16(msg, off)?; in unpack()
48 let (weight, off) = unpack_uint16(msg, off)?; in unpack()
51 let (port, off) = unpack_uint16(msg, off)?; in unpack()
54 let off = self in unpack() localVariable
56 .unpack_compressed(msg, off, false /* allowCompression */)?; in unpack()
58 Ok(off) in unpack()
H A Dmod.rs82 pub fn unpack(&mut self, msg: &[u8], mut off: usize) -> Result<usize> { in unpack()
83 off = self.header.unpack(msg, off, 0)?; in unpack()
84 let (rb, off) = in unpack()
87 Ok(off) in unpack()
90 pub(crate) fn skip(msg: &[u8], off: usize) -> Result<usize> { in skip()
91 let mut new_off = Name::skip(msg, off)?; in skip()
161 let mut new_off = off; in unpack()
247 fn unpack(&mut self, msg: &[u8], off: usize, length: usize) -> Result<usize>; in unpack()
253 mut off: usize, in unpack_resource_body()
270 off = rb.unpack(msg, off, length)?; in unpack_resource_body()
[all …]
H A Dmx.rs40 fn unpack(&mut self, msg: &[u8], off: usize, _length: usize) -> Result<usize> { in unpack()
41 let (pref, off) = unpack_uint16(msg, off)?; in unpack()
43 self.mx.unpack(msg, off) in unpack()
H A Dtxt.rs39 fn unpack(&mut self, msg: &[u8], mut off: usize, length: usize) -> Result<usize> { in unpack()
43 let (t, new_off) = unpack_str(msg, off)?; in unpack()
44 off = new_off; in unpack()
54 Ok(off) in unpack()
H A Da.rs31 fn unpack(&mut self, msg: &[u8], off: usize, _length: usize) -> Result<usize> { in unpack()
32 unpack_bytes(msg, off, &mut self.a) in unpack()
H A Dptr.rs32 fn unpack(&mut self, msg: &[u8], off: usize, _length: usize) -> Result<usize> { in unpack()
33 self.ptr.unpack(msg, off) in unpack()
H A Daaaa.rs31 fn unpack(&mut self, msg: &[u8], off: usize, _length: usize) -> Result<usize> { in unpack()
32 unpack_bytes(msg, off, &mut self.aaaa) in unpack()
H A Dcname.rs31 fn unpack(&mut self, msg: &[u8], off: usize, _length: usize) -> Result<usize> { in unpack()
32 self.cname.unpack(msg, off) in unpack()
H A Dns.rs32 fn unpack(&mut self, msg: &[u8], off: usize, _txt_length: usize) -> Result<usize> { in unpack()
33 self.ns.unpack(msg, off) in unpack()
/webrtc/.github/workflows/
H A Dgrcov.yml53 …pt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort -Cdebug-assert…
54 …pt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort -Cdebug-assert…
/webrtc/ice/
H A Dcodecov.yml3 max_report_age: off
/webrtc/data/
H A Dcodecov.yml3 max_report_age: off
/webrtc/dtls/
H A Dcodecov.yml3 max_report_age: off
/webrtc/
H A Dcodecov.yml3 max_report_age: off
/webrtc/media/
H A Dcodecov.yml3 max_report_age: off
/webrtc/sdp/
H A Dcodecov.yml3 max_report_age: off
/webrtc/sctp/
H A Dcodecov.yml3 max_report_age: off
/webrtc/stun/
H A Dcodecov.yml3 max_report_age: off

12