View Source dns_record (dns_erlang v3.1.2)

The dns_record module exports serialise and deserialise functions for serialising and deserialising messages.

You will generally not use these functions directly, rather you will use the functions for encoding and decoding messages exported by dns.

Summary

Functions

deserialise(_)

-spec deserialise(_) -> bitstring() | tuple().

deserialise(Term, Opts)

-spec deserialise(_, [any()]) -> bitstring() | tuple().

serialise/1

-spec serialise(binary() | tuple()) -> any().

serialise(Term, Opts)

-spec serialise(binary() | tuple(), [any()]) -> any().