MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / _get_all_flags

Method _get_all_flags

python/architecture.py:788–801  ·  view source on GitHub ↗
(self, ctxt, count)

Source from the content-addressed store, hash-verified

786 return None
787
788 def _get_all_flags(self, ctxt, count):
789 try:
790 flags = list(self._flags_by_index.keys())
791 count[0] = len(flags)
792 flag_buf = (ctypes.c_uint * len(flags))()
793 for i in range(0, len(flags)):
794 flag_buf[i] = flags[i]
795 result = ctypes.cast(flag_buf, ctypes.c_void_p)
796 self._pending_reg_lists[result.value] = (result, flag_buf)
797 return result.value
798 except KeyError:
799 log_error(traceback.format_exc())
800 count[0] = 0
801 return None
802
803 def _get_all_flag_write_types(self, ctxt, count):
804 try:

Callers

nothing calls this directly

Calls 2

log_errorFunction · 0.85
keysMethod · 0.45

Tested by

no test coverage detected