func (rd *RP) Decode(b []byte, pos *int, sniffer dns.WireDecodeSniffer) (err error) {
	p0 := &b[*pos]
	if err = (*dns.DomainName)(&rd.Mbox).Decode(b, pos, sniffer); err != nil {
		return
	}

	if err = (*dns.DomainName)(&rd.Txt).Decode(b, pos, sniffer); err != nil {
		return
	}

	if sniffer != nil {
		sniffer(p0, &b[*pos-1], dns.SniffRDataRP, rd)
	}
	return
}
// Implementation of dns.Wirer
Implementation of dns.Wirer
// Implementation of dns . Wirer
func (rd *RP) Decode(b []byte, pos *int, sniffer dns.WireDecodeSniffer) (err error) {
	p0 := &b[*pos]
	if err = (*dns.DomainName)(&rd.Mbox).Decode(b, pos, sniffer); err != nil {
		return
	}
	if err = (*dns.DomainName)(&rd.Txt).Decode(b, pos, sniffer); err != nil {
		return
	}
	if sniffer != nil {
		sniffer(p0, &b[*pos-1], dns.SniffRDataRP, rd)
	}
	return
}
func ( rd * RP ) Decode ( b [ ] byte , pos * int , sniffer dns . WireDecodeSniffer ) ( err error ) { p0 := & b [ * pos ] if err = ( * dns . DomainName ) ( & rd . Mbox ) . Decode ( b , pos , sniffer ) ; err != nil { return } if err = ( * dns . DomainName ) ( & rd . Txt ) . Decode ( b , pos , sniffer ) ; err != nil { return } if sniffer != nil { sniffer ( p0 , & b [ * pos - 1 ] , dns . SniffRDataRP , rd ) } return }
Implementation of dns.Wirer
Implementation of dns . Wirer