12345678910111213141516171819module juptune.dns.encoding;
enum DnsEncodingError : int
{
///
none = 0,
/// A label (segment of a domain name) was too long.
labelTooLong = 1,
/// The domain name was too long in total.
domainNameTooLong = 2,
/// A label (segment of a domain name) was invalid for some reason.
invalidLabel = 3,
/// When encoding into a buffer, the end of the buffer was reached before finishing the encoding.
bufferTooSmall = 4,
/// When decoding, the end of the buffer was reached prematurely.
eof = 5,
/// When decoding, there were bytes left in the buffer that weren't used.
trailingData = 6
}
A Resulterror enum