List of CoreVariable objects
(self)
| 1240 | |
| 1241 | @property |
| 1242 | def core_vars(self) -> List['variable.CoreVariable']: |
| 1243 | """List of CoreVariable objects""" |
| 1244 | count = ctypes.c_ulonglong() |
| 1245 | v = core.BNGetFunctionVariables(self.handle, count) |
| 1246 | assert v is not None, "core.BNGetFunctionVariables returned None" |
| 1247 | try: |
| 1248 | return [variable.CoreVariable.from_BNVariable(v[i].var) for i in range(count.value)] |
| 1249 | finally: |
| 1250 | core.BNFreeVariableNameAndTypeList(v, count.value) |
| 1251 | |
| 1252 | def get_variable_by_name(self, name: str) -> Optional['variable.Variable']: |
| 1253 | """Get a specific variable or None if it doesn't exist""" |
nothing calls this directly
no test coverage detected