func (rd *TXT) Decode(b []byte, pos *int, sniffer dns.WireDecodeSniffer) (err error) {
	p0 := &b[*pos]
	s := []string{}
	for *pos < len(b) {
		var part dns.CharString
		if err = part.Decode(b, pos, sniffer); err != nil {
			return
		}

		s = append(s, string(part))
	}
	rd.S = s
	if sniffer != nil {
		sniffer(p0, &b[*pos-1], dns.SniffRDataTXT, rd)
	}
	return
}
// Implementation of dns.Wirer
Implementation of dns.Wirer
// Implementation of dns . Wirer
func (rd *TXT) Decode(b []byte, pos *int, sniffer dns.WireDecodeSniffer) (err error) {
	p0 := &b[*pos]
	s := []string{}
	for *pos < len(b) {
		var part dns.CharString
		if err = part.Decode(b, pos, sniffer); err != nil {
			return
		}
		s = append(s, string(part))
	}
	rd.S = s
	if sniffer != nil {
		sniffer(p0, &b[*pos-1], dns.SniffRDataTXT, rd)
	}
	return
}
func ( rd * TXT ) Decode ( b [ ] byte , pos * int , sniffer dns . WireDecodeSniffer ) ( err error ) { p0 := & b [ * pos ] s := [ ] string { } for * pos < len ( b ) { var part dns . CharString if err = part . Decode ( b , pos , sniffer ) ; err != nil { return } s = append ( s , string ( part ) ) } rd . S = s if sniffer != nil { sniffer ( p0 , & b [ * pos - 1 ] , dns . SniffRDataTXT , rd ) } return }
Implementation of dns.Wirer
Implementation of dns . Wirer