def by_address(ea):
'''Return the segment that contains the specified ``ea``.'''
s = idaapi.getseg(interface.address.within(ea))
if s is None:
raise LookupError("{:s}.by_address({:x}) : Unable to locate segment".format(__name__, ea))
return s
评论列表
文章目录