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

Method create_auto_var

python/function.py:2663–2669  ·  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

2661 core.BNDeleteUserStackVariable(self.handle, offset)
2662
2663 def create_auto_var(
2664 self, var: 'variable.Variable', var_type: StringOrType, name: str, ignore_disjoint_uses: bool = False
2665 ) -> None:
2666 if isinstance(var_type, str):
2667 (var_type, _) = self.view.parse_type_string(var_type)
2668 tc = var_type._to_core_struct()
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

Callers

nothing calls this directly

Calls 3

to_BNVariableMethod · 0.80
parse_type_stringMethod · 0.45
_to_core_structMethod · 0.45

Tested by

no test coverage detected