Exemple #1
0
 /// <summary>
 /// Writes this RR in DNS wire format to the <paramref name="buffer"/>
 /// </summary>
 /// <param name="buffer">The buffer to which DNS wire data are written</param>
 protected override void SerializeRecordData(DnsBuffer buffer)
 {
     foreach(string text in this.m_strings)
     {
         if (text.Length > byte.MaxValue)
         {
             throw new DnsProtocolException(DnsProtocolError.StringTooLong);
         }
         
         buffer.AddByte((byte) text.Length);
         buffer.AddChars(text);
     }
 }