diff options
| author | Xusheng <xusheng@vector35.com> | 2020-09-28 16:50:27 +0800 |
|---|---|---|
| committer | Xusheng <xusheng@vector35.com> | 2020-10-16 23:06:25 +0800 |
| commit | ba72c577874c83567737d08ca64d3e52090763b7 (patch) | |
| tree | f5a1c8d1778795f56e1657924ae50bd53adbd730 /python/binaryview.py | |
| parent | 8961012dca58c18afcdf1985b1cb554a5b1ad4c2 (diff) | |
add unit test for deprecated BinaryViewType
expose FileMetadata::GetExistingViews()
Diffstat (limited to 'python/binaryview.py')
| -rw-r--r-- | python/binaryview.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index b7f5b745..e7c39641 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -731,6 +731,11 @@ class BinaryViewType(with_metaclass(_BinaryViewTypeMetaclass, object)): """BinaryView long name (read-only)""" return core.BNGetBinaryViewTypeLongName(self.handle) + @property + def is_deprecated(self): + """returns if the BinaryViewType is deprecated (read-only)""" + return core.BNIsBinaryViewTypeDeprecated(self.handle) + def create(self, data): view = core.BNCreateBinaryViewOfType(self.handle, data.handle) if view is None: |
