Get a list of ExternalLocations in this BinaryView :return: A list of ExternalLocations in this BinaryView
(self)
| 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): |
nothing calls this directly
no test coverage detected