func (rd *RDATA) Decode(b []byte, pos *int, sniffer dns.WireDecodeSniffer) (err error) {
	if *pos >= len(b) {
		*rd = RDATA{}
		if sniffer != nil {
			sniffer(nil, nil, dns.SniffRData, rd)
		}
		return
	}

	p0 := &b[*pos]
	n := len(b) - *pos
	*rd = b[*pos:]
	*pos += n
	if sniffer != nil {
		sniffer(p0, &b[*pos-1], dns.SniffRData, rd)
	}
	return
}
// Implementation of dns.Wirer
Implementation of dns.Wirer
// Implementation of dns . Wirer
func (rd *RDATA) Decode(b []byte, pos *int, sniffer dns.WireDecodeSniffer) (err error) {
	if *pos >= len(b) {
		*rd = RDATA{}
		if sniffer != nil {
			sniffer(nil, nil, dns.SniffRData, rd)
		}
		return
	}
	p0 := &b[*pos]
	n := len(b) - *pos
	*rd = b[*pos:]
	*pos += n
	if sniffer != nil {
		sniffer(p0, &b[*pos-1], dns.SniffRData, rd)
	}
	return
}
func ( rd * RDATA ) Decode ( b [ ] byte , pos * int , sniffer dns . WireDecodeSniffer ) ( err error ) { if * pos >= len ( b ) { * rd = RDATA { } if sniffer != nil { sniffer ( nil , nil , dns . SniffRData , rd ) } return } p0 := & b [ * pos ] n := len ( b ) - * pos * rd = b [ * pos : ] * pos += n if sniffer != nil { sniffer ( p0 , & b [ * pos - 1 ] , dns . SniffRData , rd ) } return }
Implementation of dns.Wirer
Implementation of dns . Wirer