func (rr *RR) Encode(b *dns.Wirebuf) {
	dns.DomainName(rr.Name).Encode(b)
	rr.Type.Encode(b)
	rr.Class.Encode(b)
	dns.Octets4(rr.TTL).Encode(b)
	p0 := len(b.Buf)
	b.Buf = append(b.Buf, 0, 0)
	rr.RData.Encode(b)
	n := len(b.Buf) - (p0 + 2)
	b.Buf[p0] = byte(n >> 8)
	b.Buf[p0+1] = byte(n)
}
// Implementation of dns.Wirer
Implementation of dns.Wirer
// Implementation of dns . Wirer
func (rr *RR) Encode(b *dns.Wirebuf) {
	dns.DomainName(rr.Name).Encode(b)
	rr.Type.Encode(b)
	rr.Class.Encode(b)
	dns.Octets4(rr.TTL).Encode(b)
	p0 := len(b.Buf)
	b.Buf = append(b.Buf, 0, 0)
	rr.RData.Encode(b)
	n := len(b.Buf) - (p0 + 2)
	b.Buf[p0] = byte(n >> 8)
	b.Buf[p0+1] = byte(n)
}
func ( rr * RR ) Encode ( b * dns . Wirebuf ) { dns . DomainName ( rr . Name ) . Encode ( b ) rr . Type . Encode ( b ) rr . Class . Encode ( b ) dns . Octets4 ( rr . TTL ) . Encode ( b ) p0 := len ( b . Buf ) b . Buf = append ( b . Buf , 0 , 0 ) rr . RData . Encode ( b ) n := len ( b . Buf ) - ( p0 + 2 ) b . Buf [ p0 ] = byte ( n >> 8 ) b . Buf [ p0 + 1 ] = byte ( n ) }
Implementation of dns.Wirer
Implementation of dns . Wirer