(image: CacheImage)
| 80 | ) |
| 81 | |
| 82 | def image_to_api(image: CacheImage) -> sccore.BNSharedCacheImage: |
| 83 | region_start_array = (ctypes.c_ulonglong * len(image.region_starts))() |
| 84 | for i, region_start in enumerate(image.region_starts): |
| 85 | region_start_array[i] = region_start |
| 86 | core_region_starts = sccore.BNSharedCacheAllocRegionList(region_start_array, len(region_start_array)) |
| 87 | return sccore.BNSharedCacheImage( |
| 88 | _name=BNAllocString(image.name), |
| 89 | headerAddress=image.header_address, |
| 90 | regionStartCount=len(region_start_array), |
| 91 | regionStarts=core_region_starts |
| 92 | ) |
| 93 | |
| 94 | def symbol_from_api(symbol: sccore.BNSharedCacheSymbol) -> CacheSymbol: |
| 95 | return CacheSymbol( |
no outgoing calls
no test coverage detected