diff options
| author | Brian Potchik <brian@vector35.com> | 2025-07-12 11:24:18 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2025-07-12 11:24:18 -0400 |
| commit | 7a6f1553a1a4c621ffac81edaa859fb36cce95b7 (patch) | |
| tree | a4cb59487e4f9ad2f5972949b7f742e56e38637f /binaryninjaapi.h | |
| parent | 41507e5f49989fbf60f303270e0a051b546469f4 (diff) | |
Add support for unbacked memory regions directly in the memory map.
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 9710f919..27564dc1 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -7202,6 +7202,11 @@ namespace BinaryNinja { return BNAddRemoteMemoryRegion(m_object, name.c_str(), start, source->GetCallbacks(), flags); } + bool AddUnbackedMemoryRegion(const std::string& name, uint64_t start, uint64_t length, uint32_t flags = 0, uint8_t fill = 0) + { + return BNAddUnbackedMemoryRegion(m_object, name.c_str(), start, length, flags, fill); + } + bool RemoveMemoryRegion(const std::string& name) { return BNRemoveMemoryRegion(m_object, name.c_str()); @@ -7255,6 +7260,11 @@ namespace BinaryNinja { return BNSetMemoryRegionFill(m_object, name.c_str(), fill); } + bool IsMemoryRegionLocal(const std::string& name) + { + return BNIsMemoryRegionLocal(m_object, name.c_str()); + } + void Reset() { BNResetMemoryMap(m_object); |
