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

Method zero_extend

python/lowlevelil.py:5031–5044  ·  view source on GitHub ↗

``zero_extend`` zero-extends the expression in ``value`` to ``size`` bytes :param int size: the size of the result in bytes :param ExpressionIndex value: the expression to zero extend :param ILSourceLocation loc: location of returned expression :return: The expression ``zx. (value)`

(
	    self, size: int, value: ExpressionIndex, flags: Optional['architecture.FlagType'] = None,
	    loc: Optional['ILSourceLocation'] = None
	)

Source from the content-addressed store, hash-verified

5029 return self.expr(LowLevelILOperation.LLIL_SX, value, size=size, flags=flags, source_location=loc)
5030
5031 def zero_extend(
5032 self, size: int, value: ExpressionIndex, flags: Optional['architecture.FlagType'] = None,
5033 loc: Optional['ILSourceLocation'] = None
5034 ) -> ExpressionIndex:
5035 """
5036 ``zero_extend`` zero-extends the expression in ``value`` to ``size`` bytes
5037
5038 :param int size: the size of the result in bytes
5039 :param ExpressionIndex value: the expression to zero extend
5040 :param ILSourceLocation loc: location of returned expression
5041 :return: The expression ``zx.<size>(value)``
5042 :rtype: ExpressionIndex
5043 """
5044 return self.expr(LowLevelILOperation.LLIL_ZX, value, size=size, flags=flags, source_location=loc)
5045
5046 def low_part(
5047 self, size: int, value: ExpressionIndex, flags: Optional['architecture.FlagType'] = None,

Callers 3

M6502Class · 0.45
load_zero_page_16Method · 0.45
indirect_loadMethod · 0.45

Calls 1

exprMethod · 0.95

Tested by

no test coverage detected