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

Method var_field

python/mediumlevelil.py:3753–3766  ·  view source on GitHub ↗

``var_field`` returns the field at offset ``offset`` from variable ``src`` of size ``size`` :param int size: the size of the field in bytes :param Variable src: the variable being read :param int offset: offset of field in the variable :param ILSourceLocation loc: location of returned ex

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

Source from the content-addressed store, hash-verified

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
3755 ) -> ExpressionIndex:
3756 """
3757 ``var_field`` returns the field at offset ``offset`` from variable ``src`` of size ``size``
3758
3759 :param int size: the size of the field in bytes
3760 :param Variable src: the variable being read
3761 :param int offset: offset of field in the variable
3762 :param ILSourceLocation loc: location of returned expression
3763 :return: The expression ``var:offset.size``
3764 :rtype: ExpressionIndex
3765 """
3766 return self.expr(MediumLevelILOperation.MLIL_VAR_FIELD, src.identifier, offset, size=size, source_location=loc)
3767
3768 def var_split(
3769 self, size: int, hi: 'variable.Variable', lo: 'variable.Variable', loc: Optional['ILSourceLocation'] = None

Callers

nothing calls this directly

Calls 1

exprMethod · 0.95

Tested by

no test coverage detected