pub fn in_ranges<R>(pc: u32, rang: &mut RangeIter<R>) -> Option<bool>
Expand description
Check if the given address is withing range of any of the given ranges.
Description:
pc
- A 32 bit machine code address, which is most commonly the current program counter value.rang
- A iterator over machine code address ranges.
It checks if the given address is within the range of each given address ranges.
If the address is in range of one of them then it will return Some(true)
, otherwise it will return
Some(false)
.
The function will only return None
if the address range iterator does not contain any address
ranges.