def sameAttributes()

in UefiTestingPkg/AuditTests/PagingAudit/Windows/MemoryRangeObjects.py [0:0]


    def sameAttributes(self, compare):
        if compare is None:
            return False

        if not (((self.PhysicalEnd + 1) == compare.PhysicalStart) or ((compare.PhysicalEnd + 1) == self.PhysicalStart)):
            return False

        if (self.PageSize != compare.PageSize):
            return False

        if (self.ReadWrite != compare.ReadWrite):
            return False

        if (self.MustBe1 != compare.MustBe1):
            return False

        if (self.Nx != compare.Nx):
            return False

        if(self.UserPrivilege != compare.UserPrivilege):
            return False

        if (self.ImageName != compare.ImageName):
            return False

        if (self.MemoryType != compare.MemoryType):
            return False

        if (self.SystemMemoryType != compare.SystemMemoryType):
            return False

        if (self.Attribute != compare.Attribute):
            return False

        if (self.PageSplit or compare.PageSplit):
            return False

        return True