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

Method get_flag_index

python/architecture.py:1509–1516  ·  view source on GitHub ↗
(self, flag: FlagType)

Source from the content-addressed store, hash-verified

1507 raise Exception("reg_stack is not convertable to index")
1508
1509 def get_flag_index(self, flag: FlagType) -> FlagIndex:
1510 if isinstance(flag, str):
1511 return self._flags[FlagName(flag)]
1512 elif isinstance(flag, lowlevelil.ILFlag):
1513 return flag.index
1514 elif isinstance(flag, int):
1515 return FlagIndex(flag)
1516 raise Exception("flag is not convertable to index")
1517
1518 def get_semantic_flag_class_index(self, sem_class: Optional[SemanticClassType]) -> SemanticClassIndex:
1519 if sem_class is None:

Calls

no outgoing calls

Tested by

no test coverage detected