internal override void ReadRDATA(Internal.ByteReader reader) { MNAME = reader.ReadDomain(); RNAME = reader.ReadDomain(); SERIAL = reader.ReadUint32(); REFRESH = reader.ReadUint32(); RETRY = reader.ReadUint32(); EXPIRE = reader.ReadUint32(); MINIMUM = reader.ReadUint32(); }
void Internal.IResponseReader.ReadResponse(Internal.ByteReader reader) { NAME = reader.ReadDomain(); // TYPE may be not understood TypeValue = reader.ReadUIn16(); if (Enum.IsDefined(typeof(QTYPE), TypeValue)) { // known type TYPE = (QTYPE)TypeValue; TypeString = TYPE.ToString(); } else { // unknown type TYPE = null; TypeString = String.Format("[{0}]", TypeValue.ToString()); } CLASS = reader.ReadUIn16Enum<QCLASS>(); TTL = reader.ReadUint32(); RDLENGTH = reader.ReadUIn16(); }