sharedcache.sharedcache module¶
Class |
Description |
|---|---|
Function |
Description |
|---|---|
CacheImage¶
CacheRegion¶
- class CacheRegion[source]¶
Bases:
objectCacheRegion(region_type: binaryninja.sharedcache.sharedcache_enums.SharedCacheRegionType, name: str, start: int, size: int, image_start: int, flags: ctypes.c_int)
- __init__(region_type: SharedCacheRegionType, name: str, start: int, size: int, image_start: int, flags: c_int) → None¶
- region_type: SharedCacheRegionType¶
CacheSymbol¶
SharedCacheController¶
- class SharedCacheController[source]¶
Bases:
object- __init__(view: BinaryView)[source]¶
Retrieve the shared cache controller for a given view. Call is_valid to check if the controller is valid.
- Parameters:
view (BinaryView) –
- apply_image(view: BinaryView, image: CacheImage) → bool[source]¶
- Parameters:
view (BinaryView) –
image (CacheImage) –
- Return type:
- apply_region(view: BinaryView, region: CacheRegion) → bool[source]¶
- Parameters:
view (BinaryView) –
region (CacheRegion) –
- Return type:
- get_image_at(address: int) → CacheImage | None[source]¶
- Parameters:
address (int) –
- Return type:
CacheImage | None
- get_image_containing(address: int) → CacheImage | None[source]¶
- Parameters:
address (int) –
- Return type:
CacheImage | None
- get_image_dependencies(image: CacheImage) → [<class 'str'>][source]¶
Returns a list of image names that this image depends on.
- Parameters:
image (CacheImage) –
- Return type:
[<class ‘str’>]
- get_image_with_name(name: str) → CacheImage | None[source]¶
- Parameters:
name (str) –
- Return type:
CacheImage | None
- get_region_at(address: int) → CacheRegion | None[source]¶
- Parameters:
address (int) –
- Return type:
CacheRegion | None
- get_region_containing(address: int) → CacheRegion | None[source]¶
- Parameters:
address (int) –
- Return type:
CacheRegion | None
- get_symbol_at(address: int) → CacheSymbol | None[source]¶
- Parameters:
address (int) –
- Return type:
CacheSymbol | None
- get_symbol_with_name(name: str) → CacheSymbol | None[source]¶
- Parameters:
name (str) –
- Return type:
CacheSymbol | None
- is_image_loaded(image: CacheImage) → bool[source]¶
- Parameters:
image (CacheImage) –
- Return type:
- is_region_loaded(region: CacheRegion) → bool[source]¶
- Parameters:
region (CacheRegion) –
- Return type:
- property images: [<class 'binaryninja.sharedcache.sharedcache.CacheImage'>]¶
- property loaded_images: [<class 'binaryninja.sharedcache.sharedcache.CacheImage'>]¶
Get a list of images that are currently loaded in the view.
- property loaded_regions: [<class 'binaryninja.sharedcache.sharedcache.CacheRegion'>]¶
Get a list of regions that are currently loaded in the view.
- property regions: [<class 'binaryninja.sharedcache.sharedcache.CacheRegion'>]¶
- property symbols: [<class 'binaryninja.sharedcache.sharedcache.CacheSymbol'>]¶
image_from_api¶
- image_from_api(image: BNSharedCacheImage) → CacheImage[source]¶
- Parameters:
image (BNSharedCacheImage) –
- Return type:
image_to_api¶
- image_to_api(image: CacheImage) → BNSharedCacheImage[source]¶
- Parameters:
image (CacheImage) –
- Return type:
region_from_api¶
- region_from_api(region: BNSharedCacheRegion) → CacheRegion[source]¶
- Parameters:
region (BNSharedCacheRegion) –
- Return type:
region_to_api¶
- region_to_api(region: CacheRegion) → BNSharedCacheRegion[source]¶
- Parameters:
region (CacheRegion) –
- Return type:
symbol_from_api¶
- symbol_from_api(symbol: BNSharedCacheSymbol) → CacheSymbol[source]¶
- Parameters:
symbol (BNSharedCacheSymbol) –
- Return type:
symbol_to_api¶
- symbol_to_api(symbol: CacheSymbol) → BNSharedCacheSymbol[source]¶
- Parameters:
symbol (CacheSymbol) –
- Return type: