public QuestionRecord(string n, QTYPE t, RCLASS c) { if (n.Length > 256) { throw new MalformedRecord(); } this.name = n; this._type = t; this._class = c; }
public ResourceRecord(string n, QTYPE t, RCLASS c, uint _ttl, byte[] _data) { this.question = new QuestionRecord(n, t, c); this.ttl = _ttl; this.data = _data; }
public QuestionRecord(byte[] bytes, ref ushort i) { this.name = readLabel(bytes, ref i); this._type = (QTYPE)GetLEUInt16(bytes, ref i); this._class = (RCLASS)GetLEUInt16(bytes, ref i); }