From 7a6f1553a1a4c621ffac81edaa859fb36cce95b7 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Sat, 12 Jul 2025 11:24:18 -0400 Subject: Add support for unbacked memory regions directly in the memory map. --- binaryninjaapi.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'binaryninjaapi.h') 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); -- cgit v1.3.1