DNS

// enums

enum io.DnsClass;
bitflag enum io.DnsFlags;
enum io.DnsOpcode;
enum io.DnsResponseCode;
enum io.DnsType;

// structs

struct io.DnsAnswerRrSuffix;
struct io.DnsHdr;
struct io.DnsQuestionRrSuffix;

// global functions

string_t io.formatDnsDigest(void const* p);

size_t io.scanDnsName(
    void const* p,
    size_t size
);

void const* io.scanDnsName(
    void const* p,
    void const* end
);

string_t io.formatDnsName(
    void const* p,
    size_t size,
    void const* base
);

string_t io.formatDnsName(
    void const* p,
    void const* end,
    void const* base
);

size_t io.formatDnsName(
    std.StringBuilder* string,
    void const* p,
    size_t size,
    void const* base
);

void const* io.formatDnsName(
    std.StringBuilder* string,
    void const* p,
    void const* end,
    void const* base
);