def save(filename, segment, offset=0):
"""Export the segment identified by ``segment`` to the file named ``filename``.
If the int ``offset`` is specified, then begin writing into the file at the specified offset.
"""
if isinstance(segment, idaapi.segment_t):
return _save_file(filename, segment.startEA, size(segment), offset)
return save(filename, by(segment))
评论列表
文章目录