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

Method add_external_library

python/binaryview.py:9962–9976  ·  view source on GitHub ↗

Add an ExternalLibrary to this BinaryView :param name: Name of the external library :param backing_file: Optional ProjectFile that backs the external library :param auto: Whether or not this action is the result of automated analysis :return: The created ExternalLibrary

(self, name: str, backing_file: Optional['project.ProjectFile'] = None, auto: bool = False)

Source from the content-addressed store, hash-verified

9960 return Logger(self.file.session_id, logger_name)
9961
9962 def add_external_library(self, name: str, backing_file: Optional['project.ProjectFile'] = None, auto: bool = False) -> externallibrary.ExternalLibrary:
9963 """
9964 Add an ExternalLibrary to this BinaryView
9965
9966 :param name: Name of the external library
9967 :param backing_file: Optional ProjectFile that backs the external library
9968 :param auto: Whether or not this action is the result of automated analysis
9969 :return: The created ExternalLibrary
9970 """
9971 file_handle = None
9972 if backing_file is not None:
9973 file_handle = backing_file._handle
9974 handle = core.BNBinaryViewAddExternalLibrary(self.handle, name, file_handle, auto)
9975 assert handle is not None, "core.BNBinaryViewAddExternalLibrary returned None"
9976 return externallibrary.ExternalLibrary(handle)
9977
9978 def remove_external_library(self, name: str):
9979 """

Callers

nothing calls this directly

Calls 1

ExternalLibraryMethod · 0.80

Tested by

no test coverage detected