summaryrefslogtreecommitdiff
path: root/rust/src/binary_view
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/binary_view')
-rw-r--r--rust/src/binary_view/memory_map.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/rust/src/binary_view/memory_map.rs b/rust/src/binary_view/memory_map.rs
index 34ebd572..cedea26e 100644
--- a/rust/src/binary_view/memory_map.rs
+++ b/rust/src/binary_view/memory_map.rs
@@ -40,6 +40,11 @@ impl MemoryMap {
unsafe { BNSetLogicalMemoryMapEnabled(self.view.handle, enabled) };
}
+ /// Whether the memory map is activated for the associated view.
+ pub fn is_activated(&self) -> bool {
+ unsafe { BNIsMemoryMapActivated(self.view.handle) }
+ }
+
pub fn add_binary_memory_region(
&mut self,
name: &str,