| 189 | |
| 190 | |
| 191 | bool ByteView::navigate(uint64_t addr) |
| 192 | { |
| 193 | if (addr < getStart()) |
| 194 | return false; |
| 195 | if (addr > getEnd()) |
| 196 | return false; |
| 197 | m_cursorAddr = getStart(); |
| 198 | for (auto& i : m_ranges) |
| 199 | { |
| 200 | if (i.start > addr) |
| 201 | break; |
| 202 | if (addr > i.end) |
| 203 | m_cursorAddr = i.end; |
| 204 | else if (addr >= i.start) |
| 205 | m_cursorAddr = addr; |
| 206 | else |
| 207 | m_cursorAddr = i.start; |
| 208 | } |
| 209 | setTopToAddress(m_cursorAddr); |
| 210 | refreshLines(); |
| 211 | showContextAroundTop(); |
| 212 | selectNone(); |
| 213 | repositionCaret(); |
| 214 | return true; |
| 215 | } |
| 216 | |
| 217 | |
| 218 | void ByteView::updateFonts() |
no outgoing calls
no test coverage detected