def __index__(cls, ea):
'''Returns the index of the entry-point at the specified ``address``.'''
f = utils.compose(idaapi.get_entry_ordinal, idaapi.get_entry)
iterable = itertools.imap(utils.compose(utils.fap(f, lambda n:n), __builtin__.tuple), __builtin__.range(idaapi.get_entry_qty()))
filterable = itertools.ifilter(utils.compose(utils.first, functools.partial(operator.eq, ea)), iterable)
result = itertools.imap(utils.second, filterable)
return __builtin__.next(result, None)
评论列表
文章目录