angr.utils.bits¶
- angr.utils.bits.truncate_bits(value, nbits)¶
Truncate value to nbits.
For example: truncate_bits(0x1234, 8) -> 0x34
- angr.utils.bits.zeroextend_on_demand(op0, op1)¶
ZeroExtend op1 if the size of op1 is smaller than the size of op0. Otherwise, return op1.
- angr.utils.bits.s2u(s, bits)¶
- angr.utils.bits.u2s(u, bits)¶