@classmethod
def is_set(cls, val, flags):
    """
        Check if all bit in flags are set in val
        :param val: int
        :type val: int
        :param flags: int
        :type flags: int
        :return bool
        :rtype bool
        """
    if val & flags == flags:
        return True
    else:
        return False
