Ejemplo n.º 1
0
 /// <summary>
 /// Two DnsResourceDataX400Pointer are equal iff their preference, map822 and mapX400 fields are equal.
 /// </summary>
 public bool Equals(DnsResourceDataX400Pointer other)
 {
     return(other != null &&
            Preference.Equals(other.Preference) &&
            Map822.Equals(other.Map822) &&
            MapX400.Equals(other.MapX400));
 }
Ejemplo n.º 2
0
        internal override int WriteData(byte[] buffer, int dnsOffset, int offsetInDns, DnsDomainNameCompressionData compressionData)
        {
            buffer.Write(dnsOffset + offsetInDns + Offset.Preference, Preference, Endianity.Big);
            int numBytesWritten = Map822.Write(buffer, dnsOffset, compressionData, offsetInDns + Offset.Map822);

            numBytesWritten += MapX400.Write(buffer, dnsOffset, compressionData, offsetInDns + ConstantPartLength + numBytesWritten);

            return(ConstantPartLength + numBytesWritten);
        }
Ejemplo n.º 3
0
 internal override int GetLength(DnsDomainNameCompressionData compressionData, int offsetInDns)
 {
     return(ConstantPartLength + Map822.GetLength(compressionData, offsetInDns) + MapX400.GetLength(compressionData, offsetInDns));
 }