Example #1
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if (isset.slab)
                {
                    hashcode = (hashcode * 397) + Slab.GetHashCode();
                }
                if (isset.start_page)
                {
                    hashcode = (hashcode * 397) + Start_page.GetHashCode();
                }
                if (isset.num_pages)
                {
                    hashcode = (hashcode * 397) + Num_pages.GetHashCode();
                }
                if (isset.touch)
                {
                    hashcode = (hashcode * 397) + Touch.GetHashCode();
                }
                if (isset.chunk_key)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(Chunk_key);
                }
                if (isset.buffer_epoch)
                {
                    hashcode = (hashcode * 397) + Buffer_epoch.GetHashCode();
                }
                if (isset.is_free)
                {
                    hashcode = (hashcode * 397) + Is_free.GetHashCode();
                }
            }
            return(hashcode);
        }