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

Method flag_bit

python/lowlevelil.py:4506–4519  ·  view source on GitHub ↗

``flag_bit`` sets the flag named ``flag`` and size ``size`` to the constant integer value ``bit`` :param int size: the size of the flag :param str flag: flag value :param int bit: integer value to set the bit to :param ILSourceLocation loc: location of returned expression :return: A co

(
	    self, size: int, flag: 'architecture.FlagName', bit: int, loc: Optional['ILSourceLocation'] = None
	)

Source from the content-addressed store, hash-verified

4504 return self.expr(LowLevelILOperation.LLIL_FLAG, self.arch.get_flag_by_name(flag), source_location=loc)
4505
4506 def flag_bit(
4507 self, size: int, flag: 'architecture.FlagName', bit: int, loc: Optional['ILSourceLocation'] = None
4508 ) -> ExpressionIndex:
4509 """
4510 ``flag_bit`` sets the flag named ``flag`` and size ``size`` to the constant integer value ``bit``
4511
4512 :param int size: the size of the flag
4513 :param str flag: flag value
4514 :param int bit: integer value to set the bit to
4515 :param ILSourceLocation loc: location of returned expression
4516 :return: A constant expression of given value and size ``FLAG.flag = bit``
4517 :rtype: ExpressionIndex
4518 """
4519 return self.expr(LowLevelILOperation.LLIL_FLAG_BIT, self.arch.get_flag_by_name(flag), bit, size=size, source_location=loc)
4520
4521 def add(
4522 self, size: int, a: ExpressionIndex, b: ExpressionIndex, flags: Optional['architecture.FlagType'] = None,

Callers 2

copy_expr_toMethod · 0.80
get_p_valueMethod · 0.80

Calls 2

exprMethod · 0.95
get_flag_by_nameMethod · 0.80

Tested by

no test coverage detected