func (ip *ip6) Decode(b []byte, pos *int, sniffer dns.WireDecodeSniffer) (err error) {
	p := *pos
	if p+16 > len(b) {
		return fmt.Errorf("(*rr.ip6).Decode() - buffer underflow")
	}

	p0 := &b[p]
	*ip = make([]byte, 16)
	copy(*ip, b[p:])
	*pos = p + 16
	if sniffer != nil {
		sniffer(p0, &b[*pos-1], dns.SniffIPV6, ip)
	}
	return
}
// Implementation of dns.Wirer
Implementation of dns.Wirer
// Implementation of dns . Wirer
func (ip *ip6) Decode(b []byte, pos *int, sniffer dns.WireDecodeSniffer) (err error) {
	p := *pos
	if p+16 > len(b) {
		return fmt.Errorf("(*rr.ip6).Decode() - buffer underflow")
	}
	p0 := &b[p]
	*ip = make([]byte, 16)
	copy(*ip, b[p:])
	*pos = p + 16
	if sniffer != nil {
		sniffer(p0, &b[*pos-1], dns.SniffIPV6, ip)
	}
	return
}
func ( ip * ip6 ) Decode ( b [ ] byte , pos * int , sniffer dns . WireDecodeSniffer ) ( err error ) { p := * pos if p + 16 > len ( b ) { return fmt . Errorf ( " " ) } p0 := & b [ p ] * ip = make ( [ ] byte , 16 ) copy ( * ip , b [ p : ] ) * pos = p + 16 if sniffer != nil { sniffer ( p0 , & b [ * pos - 1 ] , dns . SniffIPV6 , ip ) } return }
Implementation of dns.Wirer
Implementation of dns . Wirer