···
func (ns *NS) Encode(bytes []byte, offsets *map[string]uint8) []byte {
39
-
return append(bytes, encode_domain(bytes, ns.NSDName, offsets)...)
39
+
return encode_domain(bytes, ns.NSDName, offsets)
func (ns NS) String() string {
···
func (md *MD) Encode(bytes []byte, offsets *map[string]uint8) []byte {
57
-
return append(bytes, encode_domain(bytes, md.MADName, offsets)...)
57
+
return encode_domain(bytes, md.MADName, offsets)
func (md MD) String() string {
···
func (mf *MF) Encode(bytes []byte, offsets *map[string]uint8) []byte {
75
-
return append(bytes, encode_domain(bytes, mf.MADName, offsets)...)
75
+
return encode_domain(bytes, mf.MADName, offsets)
func (mf MF) String() string {
···
func (c *CNAME) Encode(bytes []byte, offsets *map[string]uint8) []byte {
93
-
return append(bytes, encode_domain(bytes, c.CName, offsets)...)
93
+
return encode_domain(bytes, c.CName, offsets)
func (c CNAME) String() string {
···
func (mb *MB) Encode(bytes []byte, offsets *map[string]uint8) []byte {
167
-
return append(bytes, encode_domain(bytes, mb.MADName, offsets)...)
167
+
return encode_domain(bytes, mb.MADName, offsets)
func (mb MB) String() string {
···
func (mg *MG) Encode(bytes []byte, offsets *map[string]uint8) []byte {
185
-
return append(bytes, encode_domain(bytes, mg.MGMName, offsets)...)
185
+
return encode_domain(bytes, mg.MGMName, offsets)
func (mg MG) String() string {
···
func (mr *MR) Encode(bytes []byte, offsets *map[string]uint8) []byte {
203
-
return append(bytes, encode_domain(bytes, mr.NEWName, offsets)...)
203
+
return encode_domain(bytes, mr.NEWName, offsets)
func (mr MR) String() string {
···
func (ptr *PTR) Encode(bytes []byte, offsets *map[string]uint8) []byte {
272
-
return append(bytes, encode_domain(bytes, ptr.PTRDName, offsets)...)
272
+
return encode_domain(bytes, ptr.PTRDName, offsets)
func (ptr PTR) String() string {
···
func (minfo *MINFO) Encode(bytes []byte, offsets *map[string]uint8) []byte {
323
-
bytes = append(bytes, encode_domain(bytes, minfo.RMailBx, offsets)...)
324
-
bytes = append(bytes, encode_domain(bytes, minfo.EMailBx, offsets)...)
323
+
bytes = encode_domain(bytes, minfo.RMailBx, offsets)
324
+
bytes = encode_domain(bytes, minfo.EMailBx, offsets)
···
func (mx *MX) Encode(bytes []byte, offsets *map[string]uint8) []byte {
bytes = binary.BigEndian.AppendUint16(bytes, mx.Preference)
350
-
bytes = append(bytes, encode_domain(bytes, mx.Exchange, offsets)...)
350
+
bytes = encode_domain(bytes, mx.Exchange, offsets)