MCPcopy Index your code
hub / github.com/keystone-engine/keypatch / __init__

Method __init__

keypatch.py:142–153  ·  view source on GitHub ↗
(self, arch=None, mode=None)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

update_hardware_modeMethod · 0.95

Tested by

no test coverage detected