summaryrefslogtreecommitdiff
path: root/view/sharedcache/core/VM.h
diff options
context:
space:
mode:
Diffstat (limited to 'view/sharedcache/core/VM.h')
-rw-r--r--view/sharedcache/core/VM.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/view/sharedcache/core/VM.h b/view/sharedcache/core/VM.h
index 955dcbec..d567dce8 100644
--- a/view/sharedcache/core/VM.h
+++ b/view/sharedcache/core/VM.h
@@ -187,6 +187,14 @@ public:
BinaryNinja::DataBuffer ReadBuffer(size_t addr, size_t length);
+ // Returns a range of pointers within the mapped memory region corresponding to
+ // {addr, length}.
+ // WARNING: The pointers returned by this method is only valid for the lifetime
+ // of this file accessor.
+ // TODO: This should use std::span<const uint8_t> once the minimum supported
+ // C++ version supports it.
+ std::pair<const uint8_t*, const uint8_t*> ReadSpan(size_t addr, size_t length);
+
void Read(void *dest, size_t addr, size_t length);
};