Encodes the structured resource data of a record TYPE into its wire rdata (uncompressed names).
Supports the same TYPEs parseRdata decodes; for any other TYPE, pass the raw rdata as a
Uint8Array and it is returned unchanged. Used by record and by tests building
responses.
Encodes the structured resource data of a record TYPE into its wire rdata (uncompressed names).
Supports the same TYPEs parseRdata decodes; for any other TYPE, pass the raw rdata as a
Uint8Arrayand it is returned unchanged. Used by record and by tests building responses.