/// <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)); }
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); }
internal override int GetLength(DnsDomainNameCompressionData compressionData, int offsetInDns) { return(ConstantPartLength + Map822.GetLength(compressionData, offsetInDns) + MapX400.GetLength(compressionData, offsetInDns)); }