View Source dns_record_info (dns_erlang v3.0.5)

Summary

Functions

Returns the record tag atom for the given record type.

Returns the fields that make up a given record.

Returns the size of a given record.

Returns the record type for the given record tag atom.

Functions

atom_for_type(_)

-spec atom_for_type(dns:type()) -> atom() | undefined.

Returns the record tag atom for the given record type.

fields(_)

-spec fields(atom()) -> [atom(), ...].

Returns the fields that make up a given record.

size(_)

-spec size(atom()) -> non_neg_integer().

Returns the size of a given record.

type_for_atom(_)

-spec type_for_atom(atom()) -> dns:type() | undefined.

Returns the record type for the given record tag atom.