diff options
| author | Rusty Wagner <rusty@vector35.com> | 2015-08-28 20:12:08 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2015-08-28 20:12:08 -0400 |
| commit | 00c92fcf81f6144a35936855b5cc47c945fae321 (patch) | |
| tree | 0164383e9e05369f799880404d8c2453c0d0ec60 /binaryview.cpp | |
| parent | 343eebe5ca7e6d19a365e81c5646007cdc89cc8f (diff) | |
Binary view API cleanup, and add reader/writer class to Python API
Diffstat (limited to 'binaryview.cpp')
| -rw-r--r-- | binaryview.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/binaryview.cpp b/binaryview.cpp index 844bc59c..e9bf3588 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -371,6 +371,15 @@ void BinaryView::NotifyDataRemoved(uint64_t offset, uint64_t len) } +string BinaryView::GetTypeName() const +{ + char* str = BNGetViewType(m_view); + string result = str; + BNFreeString(str); + return result; +} + + bool BinaryView::IsModified() const { return BNIsViewModified(m_view); |
