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

Method get_external_libraries

python/binaryview.py:9999–10016  ·  view source on GitHub ↗

Get a list of all ExternalLibrary in this BinaryView :return: A list of ExternalLibraries in this BinaryView

(self)

Source from the content-addressed store, hash-verified

9997 return externallibrary.ExternalLibrary(handle)
9998
9999 def get_external_libraries(self) -> List[externallibrary.ExternalLibrary]:
10000 """
10001 Get a list of all ExternalLibrary in this BinaryView
10002
10003 :return: A list of ExternalLibraries in this BinaryView
10004 """
10005 count = ctypes.c_ulonglong(0)
10006 handles = core.BNBinaryViewGetExternalLibraries(self.handle, count)
10007 assert handles is not None, "core.BNBinaryViewGetExternalLibraries returned None"
10008 result = []
10009 try:
10010 for i in range(count.value):
10011 new_handle = core.BNNewExternalLibraryReference(handles[i])
10012 assert new_handle is not None, "core.BNNewExternalLibraryReference returned None"
10013 result.append(externallibrary.ExternalLibrary(new_handle))
10014 return result
10015 finally:
10016 core.BNFreeExternalLibraryList(handles, count.value)
10017
10018 def add_external_location(self, source_symbol: '_types.CoreSymbol', library: Optional[externallibrary.ExternalLibrary], target_symbol: Optional[str], target_address: Optional[int], auto: bool = False) -> externallibrary.ExternalLocation:
10019 """

Callers

nothing calls this directly

Calls 2

ExternalLibraryMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected