Function in_range

Source
pub fn in_range(pc: u32, range: &Range) -> bool
Expand description

Check if the given address is withing a range of addresses.

Description:

  • pc - A 32 bit machine code address, which is most commonly the current program counter value.
  • range - A reference to a machine code address range.

It checks if the given address is within the range of machine code addresses. If the address is in range it will return true, otherwise false. return false.