diff options
| author | Mason Reed <mason@vector35.com> | 2025-05-16 19:59:05 +0200 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-05-17 08:58:53 +0200 |
| commit | f3dce0828c95e11af1f7d23ca56be6037b86de3c (patch) | |
| tree | 07c59a8e7cd7ec022580d825fbd0cb8d2dbe8888 /python/binaryview.py | |
| parent | 64706bbd526c22e38b0be34f5d2b5a75766a6c02 (diff) | |
Add `BNIsMemoryMapActivated` API
So that users of the memory map API can know if a view has activated the memory map and adjust behavior accordingly.
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 ccd4fba3..00188902 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -2381,6 +2381,11 @@ class MemoryMap: """ core.BNSetLogicalMemoryMapEnabled(self.handle, enabled) + @property + def is_activated(self): + """Whether the memory map is activated for the associated view.""" + return core.BNIsMemoryMapActivated(self.handle) + def add_memory_region(self, name: str, start: int, source: Union['os.PathLike', str, bytes, bytearray, 'BinaryView', 'databuffer.DataBuffer', 'fileaccessor.FileAccessor'], flags: SegmentFlag = 0) -> bool: """ Adds a memory region to the memory map. Depending on the source parameter, the memory region is created as one of the following types: |
