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

Function image_from_api

view/sharedcache/api/python/sharedcache.py:72–80  ·  view source on GitHub ↗
(image: sccore.BNSharedCacheImage)

Source from the content-addressed store, hash-verified

70 )
71
72def image_from_api(image: sccore.BNSharedCacheImage) -> CacheImage:
73 region_starts = []
74 for i in range(image.regionStartCount):
75 region_starts.append(image.regionStarts[i])
76 return CacheImage(
77 name=image.name,
78 header_address=image.headerAddress,
79 region_starts=region_starts
80 )
81
82def image_to_api(image: CacheImage) -> sccore.BNSharedCacheImage:
83 region_start_array = (ctypes.c_ulonglong * len(image.region_starts))()

Callers 5

get_image_atMethod · 0.85
get_image_containingMethod · 0.85
get_image_with_nameMethod · 0.85
imagesMethod · 0.85
loaded_imagesMethod · 0.85

Calls 2

CacheImageClass · 0.70
appendMethod · 0.45

Tested by

no test coverage detected