예제 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CompressionLevel != 0)
            {
                hash ^= CompressionLevel.GetHashCode();
            }
            hash ^= ciphers_.GetHashCode();
            if (Key.Length != 0)
            {
                hash ^= Key.GetHashCode();
            }
            if (Src.Length != 0)
            {
                hash ^= Src.GetHashCode();
            }
            if (Dest.Length != 0)
            {
                hash ^= Dest.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (memoryLevel_ != null)
            {
                hash ^= MemoryLevel.GetHashCode();
            }
            if (contentLength_ != null)
            {
                hash ^= ContentLength.GetHashCode();
            }
            if (CompressionLevel != global::Envoy.Config.Filter.Http.Gzip.V3Alpha.Gzip.Types.CompressionLevel.Types.Enum.Default)
            {
                hash ^= CompressionLevel.GetHashCode();
            }
            if (CompressionStrategy != global::Envoy.Config.Filter.Http.Gzip.V3Alpha.Gzip.Types.CompressionStrategy.Default)
            {
                hash ^= CompressionStrategy.GetHashCode();
            }
            hash ^= contentType_.GetHashCode();
            if (DisableOnEtagHeader != false)
            {
                hash ^= DisableOnEtagHeader.GetHashCode();
            }
            if (RemoveAcceptEncodingHeader != false)
            {
                hash ^= RemoveAcceptEncodingHeader.GetHashCode();
            }
            if (windowBits_ != null)
            {
                hash ^= WindowBits.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (memoryLevel_ != null)
            {
                hash ^= MemoryLevel.GetHashCode();
            }
            if (contentLength_ != null)
            {
                hash ^= ContentLength.GetHashCode();
            }
            if (CompressionLevel != 0)
            {
                hash ^= CompressionLevel.GetHashCode();
            }
            if (CompressionStrategy != 0)
            {
                hash ^= CompressionStrategy.GetHashCode();
            }
            hash ^= contentType_.GetHashCode();
            if (DisableOnEtagHeader != false)
            {
                hash ^= DisableOnEtagHeader.GetHashCode();
            }
            if (RemoveAcceptEncodingHeader != false)
            {
                hash ^= RemoveAcceptEncodingHeader.GetHashCode();
            }
            if (windowBits_ != null)
            {
                hash ^= WindowBits.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #4
0
파일: FileHeader.cs 프로젝트: ivannp/cync
        public override int GetHashCode()
        {
            int hash = 1;

            if (CompressionType != 0)
            {
                hash ^= CompressionType.GetHashCode();
            }
            if (CompressionLevel != 0)
            {
                hash ^= CompressionLevel.GetHashCode();
            }
            hash ^= ciphers_.GetHashCode();
            hash ^= ivs_.GetHashCode();
            if (Checksum.Length != 0)
            {
                hash ^= Checksum.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }