func (m *QuestionItem) Decode(b []byte, pos *int, sniffer dns.WireDecodeSniffer) (err error) {
	var p0 *byte
	if p0, err = bufp0(b, pos); err != nil {
		return
	}
	if err = (*dns.DomainName)(&m.QNAME).Decode(b, pos, sniffer); err != nil {
		return
	}

	if err = (*dns.Octets2)(&m.QTYPE).Decode(b, pos, sniffer); err != nil {
		return
	}

	if err = m.QCLASS.Decode(b, pos, sniffer); err != nil {
		return
	}

	if sniffer != nil {
		sniffer(p0, &b[*pos-1], dns.SniffQuestionItem, m)
	}
	return
}
// Implementation of dns.Wirer
Implementation of dns.Wirer
// Implementation of dns . Wirer
func (m *QuestionItem) Decode(b []byte, pos *int, sniffer dns.WireDecodeSniffer) (err error) {
	var p0 *byte
	if p0, err = bufp0(b, pos); err != nil {
		return
	}
	if err = (*dns.DomainName)(&m.QNAME).Decode(b, pos, sniffer); err != nil {
		return
	}
	if err = (*dns.Octets2)(&m.QTYPE).Decode(b, pos, sniffer); err != nil {
		return
	}
	if err = m.QCLASS.Decode(b, pos, sniffer); err != nil {
		return
	}
	if sniffer != nil {
		sniffer(p0, &b[*pos-1], dns.SniffQuestionItem, m)
	}
	return
}
func ( m * QuestionItem ) Decode ( b [ ] byte , pos * int , sniffer dns . WireDecodeSniffer ) ( err error ) { var p0 * byte if p0 , err = bufp0 ( b , pos ) ; err != nil { return } if err = ( * dns . DomainName ) ( & m . QNAME ) . Decode ( b , pos , sniffer ) ; err != nil { return } if err = ( * dns . Octets2 ) ( & m . QTYPE ) . Decode ( b , pos , sniffer ) ; err != nil { return } if err = m . QCLASS . Decode ( b , pos , sniffer ) ; err != nil { return } if sniffer != nil { sniffer ( p0 , & b [ * pos - 1 ] , dns . SniffQuestionItem , m ) } return }
Implementation of dns.Wirer
Implementation of dns . Wirer