| 1859 | |
| 1860 | |
| 1861 | std::vector<Ref<Relocation>> BinaryView::GetRelocationsAt(uint64_t addr) const |
| 1862 | { |
| 1863 | size_t count = 0; |
| 1864 | BNRelocation** relocations = BNGetRelocationsAt(m_object, addr, &count); |
| 1865 | std::vector<Ref<Relocation>> result; |
| 1866 | result.reserve(count); |
| 1867 | for (size_t i = 0; i < count; i++) |
| 1868 | { |
| 1869 | result.push_back(new Relocation(BNNewRelocationReference(relocations[i]))); |
| 1870 | } |
| 1871 | BNFreeRelocationList(relocations, count); |
| 1872 | return result; |
| 1873 | } |
| 1874 | |
| 1875 | |
| 1876 | void BinaryView::RegisterNotification(BinaryDataNotification* notify) |
no test coverage detected