/// <summary> /// Reads data into this RR from the DNS wire format data in <paramref name="reader"/> /// </summary> /// <param name="reader">Reader in which wire format data for this RR is already buffered.</param> protected override void DeserializeRecordData(ref DnsBufferReader reader) { List <string> stringList = new List <string>(); int maxIndex = reader.Index + this.RecordDataLength; while (reader.Index < maxIndex) { StringBuilder sb = reader.EnsureStringBuilder(); int cb = reader.ReadByte(); while (cb-- > 0) { sb.Append(reader.ReadChar()); } stringList.Add(sb.ToString()); } this.Strings = stringList; }
/// <summary> /// Reads data into this RR from the DNS wire format data in <paramref name="reader"/> /// </summary> /// <param name="reader">Reader in which wire format data for this RR is already buffered.</param> protected override void DeserializeRecordData(ref DnsBufferReader reader) { List<string> stringList = new List<string>(); int maxIndex = reader.Index + this.RecordDataLength; while (reader.Index < maxIndex) { StringBuilder sb = reader.EnsureStringBuilder(); int cb = reader.ReadByte(); while (cb-- > 0) { sb.Append(reader.ReadChar()); } stringList.Add(sb.ToString()); } this.Strings = stringList; }