MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / RegionToApi

Function RegionToApi

view/sharedcache/api/sharedcache.cpp:35–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35BNSharedCacheRegion RegionToApi(const CacheRegion &region)
36{
37 BNSharedCacheRegion apiRegion {};
38 apiRegion.vmAddress = region.start;
39 apiRegion.name = BNAllocString(region.name.c_str());
40 apiRegion.size = region.size;
41 apiRegion.flags = region.flags;
42 apiRegion.regionType = region.type;
43 // If not associated with image this will be zeroed.
44 apiRegion.imageStart = region.imageStart.value_or(0);
45 return apiRegion;
46}
47
48CacheRegion RegionFromApi(BNSharedCacheRegion apiRegion)
49{

Callers 2

ApplyRegionMethod · 0.70
IsRegionLoadedMethod · 0.70

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected