Loading...
Searching...
No Matches
BinaryNinja::MemoryMap Class Reference

Public Member Functions

 MemoryMap (BNBinaryView *view)
 
 ~MemoryMap ()=default
 
bool AddBinaryMemoryRegion (const std::string &name, uint64_t start, Ref< BinaryView > source, uint32_t flags=0)
 
bool AddDataMemoryRegion (const std::string &name, uint64_t start, const DataBuffer &source, uint32_t flags=0)
 
bool AddRemoteMemoryRegion (const std::string &name, uint64_t start, FileAccessor *source, uint32_t flags=0)
 
bool RemoveMemoryRegion (const std::string &name)
 
std::string GetActiveMemoryRegionAt (uint64_t addr)
 
uint32_t GetMemoryRegionFlags (const std::string &name)
 
bool SetMemoryRegionFlags (const std::string &name, uint32_t flags)
 
bool IsMemoryRegionEnabled (const std::string &name)
 
bool SetMemoryRegionEnabled (const std::string &name, bool enabled)
 
bool IsMemoryRegionRebaseable (const std::string &name)
 
bool SetMemoryRegionRebaseable (const std::string &name, bool rebaseable)
 
uint8_t GetMemoryRegionFill (const std::string &name)
 
bool SetMemoryRegionFill (const std::string &name, uint8_t fill)
 
void Reset ()
 

Constructor & Destructor Documentation

◆ MemoryMap()

BinaryNinja::MemoryMap::MemoryMap ( BNBinaryView * view)
inline

◆ ~MemoryMap()

BinaryNinja::MemoryMap::~MemoryMap ( )
default

Member Function Documentation

◆ AddBinaryMemoryRegion()

bool BinaryNinja::MemoryMap::AddBinaryMemoryRegion ( const std::string & name,
uint64_t start,
Ref< BinaryView > source,
uint32_t flags = 0 )
inline

◆ AddDataMemoryRegion()

bool BinaryNinja::MemoryMap::AddDataMemoryRegion ( const std::string & name,
uint64_t start,
const DataBuffer & source,
uint32_t flags = 0 )
inline

◆ AddRemoteMemoryRegion()

bool BinaryNinja::MemoryMap::AddRemoteMemoryRegion ( const std::string & name,
uint64_t start,
FileAccessor * source,
uint32_t flags = 0 )
inline

◆ RemoveMemoryRegion()

bool BinaryNinja::MemoryMap::RemoveMemoryRegion ( const std::string & name)
inline

◆ GetActiveMemoryRegionAt()

std::string BinaryNinja::MemoryMap::GetActiveMemoryRegionAt ( uint64_t addr)
inline

◆ GetMemoryRegionFlags()

uint32_t BinaryNinja::MemoryMap::GetMemoryRegionFlags ( const std::string & name)
inline

◆ SetMemoryRegionFlags()

bool BinaryNinja::MemoryMap::SetMemoryRegionFlags ( const std::string & name,
uint32_t flags )
inline

◆ IsMemoryRegionEnabled()

bool BinaryNinja::MemoryMap::IsMemoryRegionEnabled ( const std::string & name)
inline

◆ SetMemoryRegionEnabled()

bool BinaryNinja::MemoryMap::SetMemoryRegionEnabled ( const std::string & name,
bool enabled )
inline

◆ IsMemoryRegionRebaseable()

bool BinaryNinja::MemoryMap::IsMemoryRegionRebaseable ( const std::string & name)
inline

◆ SetMemoryRegionRebaseable()

bool BinaryNinja::MemoryMap::SetMemoryRegionRebaseable ( const std::string & name,
bool rebaseable )
inline

◆ GetMemoryRegionFill()

uint8_t BinaryNinja::MemoryMap::GetMemoryRegionFill ( const std::string & name)
inline

◆ SetMemoryRegionFill()

bool BinaryNinja::MemoryMap::SetMemoryRegionFill ( const std::string & name,
uint8_t fill )
inline

◆ Reset()

void BinaryNinja::MemoryMap::Reset ( )
inline