Beispiel #1
0
        /// <summary>
        /// Deserialize the buffer into a DnsResourceRecord object
        /// </summary>
        /// <param name="reader">reader over a buffer containing raw Dns record bytes</param>
        /// <returns>DnsResourceRecord</returns>
        public static DnsResourceRecord Deserialize(ref DnsBufferReader reader)
        {
            //
            // We have to parse the header before we can figure out what kind of record this is
            //
            DnsResourceRecordHeader header = new DnsResourceRecordHeader();

            header.Deserialize(ref reader);

            DnsResourceRecord record = DnsResourceRecord.CreateRecordObject(header.Type);

            record.Deserialize(ref header, ref reader);

            return(record);
        }
Beispiel #2
0
        /// <summary>
        /// Deserialize the buffer into a DnsResourceRecord object
        /// </summary>
        /// <param name="reader">reader over a buffer containing raw Dns record bytes</param>
        /// <returns>DnsResourceRecord</returns>                
        public static DnsResourceRecord Deserialize(ref DnsBufferReader reader)
        {
            //
            // We have to parse the header before we can figure out what kind of record this is
            //
            DnsResourceRecordHeader header = new DnsResourceRecordHeader();
            header.Deserialize(ref reader);

            DnsResourceRecord record = DnsResourceRecord.CreateRecordObject(header.Type);
            record.Deserialize(ref header, ref reader);

            return record;
        }
Beispiel #3
0
 internal void Deserialize(ref DnsResourceRecordHeader header, ref DnsBufferReader reader)
 {
     m_header = header;
     this.DeserializeRecordData(ref reader);
 }
Beispiel #4
0
 internal void Deserialize(ref DnsResourceRecordHeader header, ref DnsBufferReader reader)
 {
     m_header = header;
     this.DeserializeRecordData(ref reader);
 }