diff options
| author | Rusty Wagner <rusty@vector35.com> | 2017-01-19 21:15:32 -0500 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2017-01-19 21:15:32 -0500 |
| commit | c6ed1dd374515d0e23a9d627a7dfb659c7981d16 (patch) | |
| tree | 0d5046cbf1ff9c5ced5920fab95e395102fb344f /binaryview.cpp | |
| parent | ded271158000d7fa509f513b425d95390a7f2058 (diff) | |
Add API to find virtual address from file offset
Diffstat (limited to 'binaryview.cpp')
| -rw-r--r-- | binaryview.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/binaryview.cpp b/binaryview.cpp index bef23750..cc8bb733 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -1645,6 +1645,12 @@ bool BinaryView::GetSegmentAt(uint64_t addr, Segment& result) } +bool BinaryView::GetAddressForDataOffset(uint64_t offset, uint64_t& addr) +{ + return BNGetAddressForDataOffset(m_object, offset, &addr); +} + + void BinaryView::AddAutoSection(const string& name, uint64_t start, uint64_t length, const string& type, uint64_t align, uint64_t entrySize, const string& linkedSection, const string& infoSection, uint64_t infoData) { |
