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

Method get_low_level_il_from_bytes

python/architecture.py:1428–1444  ·  view source on GitHub ↗

``get_low_level_il_from_bytes`` converts the instruction in bytes to ``il`` at the given virtual address :param str data: the bytes of the instruction :param int addr: virtual address of bytes in ``data`` :return: a list of low level il instructions :rtype: LowLevelILInstruction :Examp

(self, data: bytes, addr: int)

Source from the content-addressed store, hash-verified

1426 raise NotImplementedError
1427
1428 def get_low_level_il_from_bytes(self, data: bytes, addr: int) -> 'lowlevelil.LowLevelILInstruction':
1429 """
1430 ``get_low_level_il_from_bytes`` converts the instruction in bytes to ``il`` at the given virtual address
1431
1432 :param str data: the bytes of the instruction
1433 :param int addr: virtual address of bytes in ``data``
1434 :return: a list of low level il instructions
1435 :rtype: LowLevelILInstruction
1436 :Example:
1437
1438 >>> list(arch.get_low_level_il_from_bytes(b'\\xeb\\xfe', 0x40DEAD))
1439 <il: jump(0x40dead)>
1440 >>>
1441 """
1442 func = lowlevelil.LowLevelILFunction(self)
1443 self.get_instruction_low_level_il(data, addr, func)
1444 return func[0]
1445
1446 def get_reg_name(self, reg: RegisterIndex) -> RegisterName:
1447 """

Callers

nothing calls this directly

Calls 2

LowLevelILFunctionMethod · 0.80

Tested by

no test coverage detected