externallibrary module¶
An ExternalLibrary is an abstraction for a library that is optionally backed by a ProjectFile. |
|
An ExternalLocation is an association from a source symbol in a binary view to a target symbol and/or address in an ExternalLibrary. |
- class ExternalLibrary(handle: BNExternalLibrary)[source]¶
Bases:
object
An ExternalLibrary is an abstraction for a library that is optionally backed by a ProjectFile.
- Parameters:
handle (BNExternalLibrary) –
- property backing_file: ProjectFile | None¶
Get the file backing this external library
- Returns:
The file backing this external library or None
- class ExternalLocation(handle: BNExternalLocation)[source]¶
Bases:
object
An ExternalLocation is an association from a source symbol in a binary view to a target symbol and/or address in an ExternalLibrary.
- Parameters:
handle (BNExternalLocation) –
- property has_target_address: bool¶
Check if this ExternalLocation has a target address
- Returns:
True is this ExternalLocation has a target address, False otherwise
- property has_target_symbol: bool¶
Check if this ExternalLocation has a target symbol
- Returns:
True is this ExternalLocation has a target symbol, False otherwise
- property library: ExternalLibrary | None¶
Get the ExternalLibrary that this ExternalLocation targets
- Returns:
The ExternalLibrary pointed in to by this ExternalLocation if one exists, None otherwise
- property source_symbol: CoreSymbol¶
Get the source symbol for this ExternalLocation
- Returns:
The source symbol for this ExternalLocation