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

Method create_user_var

python/function.py:2671–2677  ·  view source on GitHub ↗
(
	    self, var: 'variable.Variable', var_type: StringOrType, name: str, ignore_disjoint_uses: bool = False
	)

Source from the content-addressed store, hash-verified

2669 core.BNCreateAutoVariable(self.handle, var.to_BNVariable(), tc, name, ignore_disjoint_uses)
2670
2671 def create_user_var(
2672 self, var: 'variable.Variable', var_type: StringOrType, name: str, ignore_disjoint_uses: bool = False
2673 ) -> None:
2674 if isinstance(var_type, str):
2675 (var_type, _) = self.view.parse_type_string(var_type)
2676 tc = var_type._to_core_struct()
2677 core.BNCreateUserVariable(self.handle, var.to_BNVariable(), tc, name, ignore_disjoint_uses)
2678
2679 def delete_user_var(self, var: 'variable.Variable') -> None:
2680 core.BNDeleteUserVariable(self.handle, var.to_BNVariable())

Callers 5

set_name_asyncMethod · 0.45
set_type_asyncMethod · 0.45
propagate_var_nameFunction · 0.45

Calls 3

to_BNVariableMethod · 0.80
parse_type_stringMethod · 0.45
_to_core_structMethod · 0.45

Tested by

no test coverage detected