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

Method get_external_locations

python/binaryview.py:10060–10077  ·  view source on GitHub ↗

Get a list of ExternalLocations in this BinaryView :return: A list of ExternalLocations in this BinaryView

(self)

Source from the content-addressed store, hash-verified

10058 return externallibrary.ExternalLocation(handle)
10059
10060 def get_external_locations(self) -> List[externallibrary.ExternalLocation]:
10061 """
10062 Get a list of ExternalLocations in this BinaryView
10063
10064 :return: A list of ExternalLocations in this BinaryView
10065 """
10066 count = ctypes.c_ulonglong(0)
10067 handles = core.BNBinaryViewGetExternalLocations(self.handle, count)
10068 assert handles is not None, "core.BNBinaryViewGetExternalLocations returned None"
10069 result = []
10070 try:
10071 for i in range(count.value):
10072 new_handle = core.BNNewExternalLocationReference(handles[i])
10073 assert new_handle is not None, "core.BNNewExternalLocationReference returned None"
10074 result.append(externallibrary.ExternalLocation(new_handle))
10075 return result
10076 finally:
10077 core.BNFreeExternalLocationList(handles, count.value)
10078
10079 @property
10080 def memory_map(self):

Callers

nothing calls this directly

Calls 2

ExternalLocationMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected