public RecordDS(RecordReader rr) { ushort length = rr.ReadUInt16(-2); KEYTAG = rr.ReadUInt16(); ALGORITHM = rr.ReadByte(); DIGESTTYPE = rr.ReadByte(); length -= 4; DIGEST = new byte[length]; DIGEST = rr.ReadBytes(length); }
public RR(RecordReader rr) { TimeLived = 0; NAME = rr.ReadDomainName(); Type = (Type)rr.ReadUInt16(); Class = (Class)rr.ReadUInt16(); TTL = rr.ReadUInt32(); RDLENGTH = rr.ReadUInt16(); RECORD = rr.ReadRecord(Type); RECORD.RR = this; }
public Header(RecordReader rr) { ID = rr.ReadUInt16(); Flags = rr.ReadUInt16(); QDCOUNT = rr.ReadUInt16(); ANCOUNT = rr.ReadUInt16(); NSCOUNT = rr.ReadUInt16(); ARCOUNT = rr.ReadUInt16(); }
public Question(RecordReader rr) { QName = rr.ReadDomainName(); QType = (QType)rr.ReadUInt16(); QClass = (QClass)rr.ReadUInt16(); }
public RecordMX(RecordReader rr) { PREFERENCE = rr.ReadUInt16(); EXCHANGE = rr.ReadDomainName(); }
public RecordNSAP(RecordReader rr) { LENGTH = rr.ReadUInt16(); NSAPADDRESS = rr.ReadBytes(LENGTH); }