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

Method GetNextValidRange

genericrange.h:209–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207 }
208
209 std::optional<std::pair<uint64_t, uint64_t>> GetNextValidRange(uint64_t addr, std::function<bool(const GenericRange<T>&)> predicate) const
210 {
211 auto itr = m_rangeMap.upper_bound(addr);
212 if (itr != m_rangeMap.begin())
213 --itr;
214
215 while (itr != m_rangeMap.end())
216 {
217 if (predicate(itr->second))
218 return std::make_pair(itr->second.GetStart(), itr->second.GetEnd());
219 ++itr;
220 }
221
222 return std::nullopt;
223 }
224
225 std::optional<std::pair<uint64_t, uint64_t>> GetPreviousValidRange(uint64_t addr, std::function<bool(const GenericRange<T>&)> predicate) const
226 {

Callers

nothing calls this directly

Calls 4

beginMethod · 0.45
endMethod · 0.45
GetStartMethod · 0.45
GetEndMethod · 0.45

Tested by

no test coverage detected