def is_valid_for_data(cls, data: BinaryView) -> bool: return data.read(0, 8) in cls.DEX_FILE_MAGICS
def is_valid_for_data(self, data: BinaryView): header = data.read(0x21A4, 24) return header == b"NINTENDOMPKMminipokemon\x00"