Searched refs:new_off (Results 1 – 6 of 6) sorted by relevance
| /webrtc/mdns/src/message/resource/ |
| H A D | mod.rs | 92 new_off = DnsType::skip(msg, new_off)?; in skip() 93 new_off = DnsClass::skip(msg, new_off)?; in skip() 94 new_off = skip_uint32(msg, new_off)?; in skip() 95 let (length, mut new_off) = unpack_uint16(msg, new_off)?; in skip() 100 Ok(new_off) in skip() 162 new_off = self.name.unpack(msg, new_off)?; in unpack() 163 new_off = self.typ.unpack(msg, new_off)?; in unpack() 164 new_off = self.class.unpack(msg, new_off)?; in unpack() 165 let (ttl, new_off) = unpack_uint32(msg, new_off)?; in unpack() 167 let (l, new_off) = unpack_uint16(msg, new_off)?; in unpack() [all …]
|
| H A D | opt.rs | 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()
|
| H A D | txt.rs | 43 let (t, new_off) = unpack_str(msg, off)?; in unpack() 44 off = new_off; in unpack()
|
| /webrtc/mdns/src/message/ |
| H A D | name.rs | 127 let mut new_off = off; in unpack_compressed() localVariable 167 new_off = curr_off; in unpack_compressed() 190 new_off = curr_off; in unpack_compressed() 192 Ok(new_off) in unpack_compressed() 199 let mut new_off = off; in skip() localVariable 202 if new_off >= msg.len() { in skip() 205 let c = msg[new_off]; in skip() 206 new_off += 1; in skip() 214 new_off += c as usize; in skip() 223 new_off += 1; in skip() [all …]
|
| H A D | packer.rs | 11 let new_off = off + field.len(); in unpack_bytes() localVariable 12 if new_off > msg.len() { in unpack_bytes() 15 field.copy_from_slice(&msg[off..new_off]); in unpack_bytes() 16 Ok(new_off) in unpack_bytes()
|
| H A D | parser.rs | 89 let new_off = self.off + self.res_header.length as usize; in skip_resource() localVariable 90 if new_off > self.msg.len() { in skip_resource() 93 self.off = new_off; in skip_resource()
|