def __iter__(self): binaryninja._init_plugins() count = ctypes.c_ulonglong() types = core.BNGetDownloadProviderList(count) try: for i in range(0, count.value): yield DownloadProvider(types[i]) finally: core.BNFreeDownloadProviderList(types)
def list(self): """List all DownloadProvider types (read-only)""" binaryninja._init_plugins() count = ctypes.c_ulonglong() types = core.BNGetDownloadProviderList(count) result = [] for i in range(0, count.value): result.append(DownloadProvider(types[i])) core.BNFreeDownloadProviderList(types) return result