func (q Question) Decode(b []byte, pos *int, sniffer dns.WireDecodeSniffer) (err error) {
	var p0 *byte
	if p0, err = bufp0(b, pos); err != nil {
		return
	}
	for i := range q {
		qi := &QuestionItem{}
		if err = qi.Decode(b, pos, sniffer); err != nil {
			return
		}

		q[i] = qi
	}
	if sniffer != nil {
		sniffer(p0, &b[*pos-1], dns.SniffQuestion, q)
	}
	return
}
// Implementation of dns.Wirer
Implementation of dns.Wirer
// Implementation of dns . Wirer
func (q Question) Decode(b []byte, pos *int, sniffer dns.WireDecodeSniffer) (err error) {
	var p0 *byte
	if p0, err = bufp0(b, pos); err != nil {
		return
	}
	for i := range q {
		qi := &QuestionItem{}
		if err = qi.Decode(b, pos, sniffer); err != nil {
			return
		}
		q[i] = qi
	}
	if sniffer != nil {
		sniffer(p0, &b[*pos-1], dns.SniffQuestion, q)
	}
	return
}
func ( q Question ) Decode ( b [ ] byte , pos * int , sniffer dns . WireDecodeSniffer ) ( err error ) { var p0 * byte if p0 , err = bufp0 ( b , pos ) ; err != nil { return } for i := range q { qi := & QuestionItem { } if err = qi . Decode ( b , pos , sniffer ) ; err != nil { return } q [ i ] = qi } if sniffer != nil { sniffer ( p0 , & b [ * pos - 1 ] , dns . SniffQuestion , q ) } return }
Implementation of dns.Wirer
Implementation of dns . Wirer