summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2024-07-22 15:16:10 -0400
committerBrian Potchik <brian@vector35.com>2024-07-22 15:16:10 -0400
commit74361e5a39cb3d356a93de66a32ca893bcc15496 (patch)
tree4dcdaf28027cd127c1d6cdfd5cf3cf3bc44fcc42 /binaryninjaapi.h
parent7d9d9d44e0662008786caafa5401b6de93091d2e (diff)
Add ability to modify segment flags via MemoryMap API.
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h15
1 files changed, 15 insertions, 0 deletions
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);