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

Function region_from_api

view/sharedcache/api/python/sharedcache.py:52–60  ·  view source on GitHub ↗
(region: sccore.BNSharedCacheRegion)

Source from the content-addressed store, hash-verified

50 return f"<CacheSymbol '{self.name}': 0x{self.address:x}>"
51
52def region_from_api(region: sccore.BNSharedCacheRegion) -> CacheRegion:
53 return CacheRegion(
54 region_type=SharedCacheRegionType(region.regionType),
55 name=region.name,
56 start=region.vmAddress,
57 size=region.size,
58 image_start=region.imageStart,
59 flags=region.flags
60 )
61
62def region_to_api(region: CacheRegion) -> sccore.BNSharedCacheRegion:
63 return sccore.BNSharedCacheRegion(

Callers 4

get_region_atMethod · 0.85
get_region_containingMethod · 0.85
regionsMethod · 0.85
loaded_regionsMethod · 0.85

Calls 2

CacheRegionClass · 0.70

Tested by

no test coverage detected