Lines Matching refs:msg
22 pub msg: &'a [u8], field
34 pub fn start(&mut self, msg: &'a [u8]) -> Result<Header> { in start()
36 msg, in start()
39 self.off = self.header.unpack(msg, 0)?; in start()
64 unpack_resource_body(header.typ, self.msg, self.off, header.length as usize)?; in resource()
79 let off = hdr.unpack(self.msg, self.off, 0)?; in resource_header()
90 if new_off > self.msg.len() { in skip_resource()
100 self.off = Resource::skip(self.msg, self.off)?; in skip_resource()
109 let mut off = name.unpack(self.msg, self.off)?; in question()
111 off = typ.unpack(self.msg, off)?; in question()
113 off = class.unpack(self.msg, off)?; in question()
145 let mut off = Name::skip(self.msg, self.off)?; in skip_question()
146 off = DnsType::skip(self.msg, off)?; in skip_question()
147 off = DnsClass::skip(self.msg, off)?; in skip_question()
338 self.msg, in resource_body()