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

Method data_vars

python/binaryview.py:3389–3400  ·  view source on GitHub ↗

List of data variables (read-only)

(self)

Source from the content-addressed store, hash-verified

3387
3388 @property
3389 def data_vars(self) -> Mapping[int, 'DataVariable']:
3390 """List of data variables (read-only)"""
3391 count = ctypes.c_ulonglong(0)
3392 var_list = core.BNGetDataVariables(self.handle, count)
3393 assert var_list is not None, "core.BNGetDataVariables returned None"
3394 result = {}
3395 try:
3396 for i in range(0, count.value):
3397 result[var_list[i].address] = DataVariable.from_core_struct(var_list[i], self)
3398 return result
3399 finally:
3400 core.BNFreeDataVariables(var_list, count.value)
3401
3402 @property
3403 def types(self) -> TypeMapping:

Callers

nothing calls this directly

Calls 1

from_core_structMethod · 0.45

Tested by

no test coverage detected