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

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