func (rd *NULL) Decode(b []byte, pos *int, sniffer dns.WireDecodeSniffer) (err error) {
	n := 0
	var p0 *byte
	if *pos < len(b) {
		p0 = &b[*pos]
		n = len(b) - *pos
		rd.Data = make([]byte, n)
		copy(rd.Data, b[*pos:])
	} else {
		rd.Data = []byte{}
		if sniffer != nil {
			sniffer(nil, nil, dns.SniffRDataNULL, rd)
		}
		return
	}

	*pos += n
	if sniffer != nil {
		sniffer(p0, &b[*pos-1], dns.SniffRDataNULL, rd)
	}
	return
}
// Implementation of dns.Wirer
Implementation of dns.Wirer
// Implementation of dns . Wirer
func (rd *NULL) Decode(b []byte, pos *int, sniffer dns.WireDecodeSniffer) (err error) {
	n := 0
	var p0 *byte
	if *pos < len(b) {
		p0 = &b[*pos]
		n = len(b) - *pos
		rd.Data = make([]byte, n)
		copy(rd.Data, b[*pos:])
	} else {
		rd.Data = []byte{}
		if sniffer != nil {
			sniffer(nil, nil, dns.SniffRDataNULL, rd)
		}
		return
	}
	*pos += n
	if sniffer != nil {
		sniffer(p0, &b[*pos-1], dns.SniffRDataNULL, rd)
	}
	return
}
func ( rd * NULL ) Decode ( b [ ] byte , pos * int , sniffer dns . WireDecodeSniffer ) ( err error ) { n := 0 var p0 * byte if * pos < len ( b ) { p0 = & b [ * pos ] n = len ( b ) - * pos rd . Data = make ( [ ] byte , n ) copy ( rd . Data , b [ * pos : ] ) } else { rd . Data = [ ] byte { } if sniffer != nil { sniffer ( nil , nil , dns . SniffRDataNULL , rd ) } return } * pos += n if sniffer != nil { sniffer ( p0 , & b [ * pos - 1 ] , dns . SniffRDataNULL , rd ) } return }
Implementation of dns.Wirer
Implementation of dns . Wirer