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

Method test_bit

python/highlevelil.py:4100–4112  ·  view source on GitHub ↗

``test_bit`` returns an expression of size ``size`` that tells whether expression ``a`` has its bit with an index of the expression ``b`` is set :param int size: size in bytes :param ExpressionIndex a: an expression to be tested :param ExpressionIndex b: an expression for the index of th

(self, size: int, a: ExpressionIndex, b: ExpressionIndex, loc: Optional['ILSourceLocation'] = None)

Source from the content-addressed store, hash-verified

4098 return self.expr(HighLevelILOperation.HLIL_CMP_UGT, a, b, size=size, source_location=loc)
4099
4100 def test_bit(self, size: int, a: ExpressionIndex, b: ExpressionIndex, loc: Optional['ILSourceLocation'] = None) -> ExpressionIndex:
4101 """
4102 ``test_bit`` returns an expression of size ``size`` that tells whether expression ``a`` has its bit with an
4103 index of the expression ``b`` is set
4104
4105 :param int size: size in bytes
4106 :param ExpressionIndex a: an expression to be tested
4107 :param ExpressionIndex b: an expression for the index of the big
4108 :param ILSourceLocation loc: location of returned expression
4109 :return: the result expression.
4110 :rtype: ExpressionIndex
4111 """
4112 return self.expr(HighLevelILOperation.HLIL_TEST_BIT, a, b, size=size, source_location=loc)
4113
4114 def bool_to_int(self, size: int, a: ExpressionIndex, loc: Optional['ILSourceLocation'] = None) -> ExpressionIndex:
4115 """

Callers

nothing calls this directly

Calls 1

exprMethod · 0.95

Tested by

no test coverage detected