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

Method var

python/mediumlevelil.py:3741–3751  ·  view source on GitHub ↗

``var`` returns the variable ``src`` of size ``size`` :param int size: the size of the variable in bytes :param Variable src: the variable being read :param ILSourceLocation loc: location of returned expression :return: An expression for the given variable :rtype: ExpressionIndex

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

Source from the content-addressed store, hash-verified

3739 return self.expr(MediumLevelILOperation.MLIL_STORE_STRUCT, dest, offset, src, size=size, source_location=loc)
3740
3741 def var(self, size: int, src: 'variable.Variable', loc: Optional['ILSourceLocation'] = None) -> ExpressionIndex:
3742 """
3743 ``var`` returns the variable ``src`` of size ``size``
3744
3745 :param int size: the size of the variable in bytes
3746 :param Variable src: the variable being read
3747 :param ILSourceLocation loc: location of returned expression
3748 :return: An expression for the given variable
3749 :rtype: ExpressionIndex
3750 """
3751 return self.expr(MediumLevelILOperation.MLIL_VAR, src.identifier, size=size, source_location=loc)
3752
3753 def var_field(
3754 self, size: int, src: 'variable.Variable', offset: int, loc: Optional['ILSourceLocation'] = None

Callers

nothing calls this directly

Calls 1

exprMethod · 0.95

Tested by

no test coverage detected