dns_record_info (dns_erlang v4.2.0)

View Source

This module exports utility functions used to inspect records. You will generally not use these functions directly.

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/1

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

Returns the record tag atom for the given record type.

fields/1

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

Returns the fields that make up a given record.

size/1

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

Returns the size of a given record.

type_for_atom/1

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

Returns the record type for the given record tag atom.