(self, arch=None, mode=None)
| 140 | } |
| 141 | |
| 142 | def __init__(self, arch=None, mode=None): |
| 143 | # update current arch and mode |
| 144 | self.update_hardware_mode() |
| 145 | |
| 146 | # override arch & mode if provided |
| 147 | if arch is not None: |
| 148 | self.arch = arch |
| 149 | if mode is not None: |
| 150 | self.mode = mode |
| 151 | |
| 152 | # IDA uses Intel syntax by default |
| 153 | self.syntax = KS_OPT_SYNTAX_INTEL |
| 154 | |
| 155 | # return Keystone arch & mode (with endianess included) |
| 156 | @staticmethod |
nothing calls this directly
no test coverage detected