func (rd *TKEY) Encode(b *dns.Wirebuf) {
	//BUG Supports times only up to 2106-02-07 06:28:15 +0000 UTC
	dns.DomainName(rd.Algorithm).Encode(b)
	dns.Octets4(rd.Inception.UTC().Unix()).Encode(b)
	dns.Octets4(rd.Expiration.UTC().Unix()).Encode(b)
	dns.Octets2(rd.Mode).Encode(b)
	dns.Octets2(rd.Error).Encode(b)
	dns.Octets2(len(rd.KeyData)).Encode(b)
	b.Buf = append(b.Buf, rd.KeyData...)
	dns.Octets2(len(rd.OtherData)).Encode(b)
	b.Buf = append(b.Buf, rd.OtherData...)
}
// Implementation of dns.Wirer
Implementation of dns.Wirer
// Implementation of dns . Wirer
func (rd *TKEY) Encode(b *dns.Wirebuf) {
	dns.DomainName(rd.Algorithm).Encode(b)
	dns.Octets4(rd.Inception.UTC().Unix()).Encode(b)
	dns.Octets4(rd.Expiration.UTC().Unix()).Encode(b)
	dns.Octets2(rd.Mode).Encode(b)
	dns.Octets2(rd.Error).Encode(b)
	dns.Octets2(len(rd.KeyData)).Encode(b)
	b.Buf = append(b.Buf, rd.KeyData...)
	dns.Octets2(len(rd.OtherData)).Encode(b)
	b.Buf = append(b.Buf, rd.OtherData...)
}
func ( rd * TKEY ) Encode ( b * dns . Wirebuf ) { dns . DomainName ( rd . Algorithm ) . Encode ( b ) dns . Octets4 ( rd . Inception . UTC ( ) . Unix ( ) ) . Encode ( b ) dns . Octets4 ( rd . Expiration . UTC ( ) . Unix ( ) ) . Encode ( b ) dns . Octets2 ( rd . Mode ) . Encode ( b ) dns . Octets2 ( rd . Error ) . Encode ( b ) dns . Octets2 ( len ( rd . KeyData ) ) . Encode ( b ) b . Buf = append ( b . Buf , rd . KeyData ... ) dns . Octets2 ( len ( rd . OtherData ) ) . Encode ( b ) b . Buf = append ( b . Buf , rd . OtherData ... ) }
Implementation of dns.Wirer
Implementation of dns . Wirer
//BUG Supports times only up to 2106-02-07 06:28:15 +0000 UTC