added async_add_torrent for increased performance when adding many torrents (no documentation yet though)

This commit is contained in:
Arvid Norberg
2011-10-12 10:27:17 +00:00
parent 268ea59876
commit 01405f32ee
10 changed files with 100 additions and 19 deletions

View File

@@ -275,6 +275,11 @@ namespace libtorrent
return combine_path(m_paths[fe.path_index], fe.filename());
}
size_type file_storage::file_size(internal_file_entry const& fe) const
{
return fe.size;
}
peer_request file_storage::map_file(int file_index, size_type file_offset
, int size) const
{