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

Method set_var

python/mediumlevelil.py:3632–3646  ·  view source on GitHub ↗

``set_var`` sets the variable ``dest`` of size ``size`` to the expression ``src`` :param int size: the size of the variable in bytes :param Variable dest: the variable being set :param ExpressionIndex src: expression with the value to set the variable to :param ILSourceLocation loc: loca

(
		self, size: int, dest: 'variable.Variable', src: ExpressionIndex,
		loc: Optional['ILSourceLocation'] = None
	)

Source from the content-addressed store, hash-verified

3630 return self.expr(MediumLevelILOperation.MLIL_NOP, source_location=loc)
3631
3632 def set_var(
3633 self, size: int, dest: 'variable.Variable', src: ExpressionIndex,
3634 loc: Optional['ILSourceLocation'] = None
3635 ) -> ExpressionIndex:
3636 """
3637 ``set_var`` sets the variable ``dest`` of size ``size`` to the expression ``src``
3638
3639 :param int size: the size of the variable in bytes
3640 :param Variable dest: the variable being set
3641 :param ExpressionIndex src: expression with the value to set the variable to
3642 :param ILSourceLocation loc: location of returned expression
3643 :return: The expression ``dest = src``
3644 :rtype: ExpressionIndex
3645 """
3646 return self.expr(MediumLevelILOperation.MLIL_SET_VAR, dest.identifier, src, size=size, source_location=loc)
3647
3648 def set_var_field(
3649 self, size: int, dest: 'variable.Variable', offset: int, src: ExpressionIndex,

Callers

nothing calls this directly

Calls 1

exprMethod · 0.95

Tested by

no test coverage detected