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

            if (RequestedBytes != 0L)
            {
                hash ^= RequestedBytes.GetHashCode();
            }
            if (AllocatedBytes != 0L)
            {
                hash ^= AllocatedBytes.GetHashCode();
            }
            if (AllocatorName.Length != 0)
            {
                hash ^= AllocatorName.GetHashCode();
            }
            if (AllocationId != 0L)
            {
                hash ^= AllocationId.GetHashCode();
            }
            if (HasSingleReference != false)
            {
                hash ^= HasSingleReference.GetHashCode();
            }
            if (Ptr != 0UL)
            {
                hash ^= Ptr.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #2
0
 public override int GetHashCode() {
   int hash = 1;
   if (RequestedBytes != 0L) hash ^= RequestedBytes.GetHashCode();
   if (AllocatedBytes != 0L) hash ^= AllocatedBytes.GetHashCode();
   if (AllocatorName.Length != 0) hash ^= AllocatorName.GetHashCode();
   if (AllocationId != 0L) hash ^= AllocationId.GetHashCode();
   if (HasSingleReference != false) hash ^= HasSingleReference.GetHashCode();
   if (Ptr != 0UL) hash ^= Ptr.GetHashCode();
   return hash;
 }