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

Method core_vars

python/function.py:1242–1250  ·  view source on GitHub ↗

List of CoreVariable objects

(self)

Source from the content-addressed store, hash-verified

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"""

Callers

nothing calls this directly

Calls 1

from_BNVariableMethod · 0.45

Tested by

no test coverage detected