From 74361e5a39cb3d356a93de66a32ca893bcc15496 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Mon, 22 Jul 2024 15:16:10 -0400 Subject: Add ability to modify segment flags via MemoryMap API. --- binaryninjaapi.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index e0fbfb50..a6e433a3 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -6764,6 +6764,16 @@ namespace BinaryNinja { return result; } + uint32_t GetMemoryRegionFlags(const std::string& name) + { + return BNGetMemoryRegionFlags(m_object, name.c_str()); + } + + bool SetMemoryRegionFlags(const std::string& name, uint32_t flags) + { + return BNSetMemoryRegionFlags(m_object, name.c_str(), flags); + } + bool IsMemoryRegionEnabled(const std::string& name) { return BNIsMemoryRegionEnabled(m_object, name.c_str()); @@ -6784,6 +6794,11 @@ namespace BinaryNinja { return BNSetMemoryRegionRebaseable(m_object, name.c_str(), rebaseable); } + uint8_t GetMemoryRegionFill(const std::string& name) + { + return BNGetMemoryRegionFill(m_object, name.c_str()); + } + bool SetMemoryRegionFill(const std::string& name, uint8_t fill) { return BNSetMemoryRegionFill(m_object, name.c_str(), fill); -- cgit v1.3.1