(region: sccore.BNSharedCacheRegion)
| 50 | return f"<CacheSymbol '{self.name}': 0x{self.address:x}>" |
| 51 | |
| 52 | def 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 | |
| 62 | def region_to_api(region: CacheRegion) -> sccore.BNSharedCacheRegion: |
| 63 | return sccore.BNSharedCacheRegion( |
no test coverage detected