示例#1
0
entry torrent_handle::write_resume_data() const
{
    entry ret(entry::dictionary_t);
    auto retr = std::ref(ret);
    sync_call(&torrent::write_resume_data, retr);
    return ret;
}
示例#2
0
std::vector<bool> torrent_handle::filtered_pieces() const
{
    std::vector<bool> ret;
    auto retr = std::ref(ret);
    sync_call(&torrent::filtered_pieces, retr);
    return ret;
}
示例#3
0
std::vector<int> torrent_handle::file_priorities() const
{
    std::vector<int> ret;
    auto retp = &ret;
    sync_call(&torrent::file_priorities, retp);
    return ret;
}
示例#4
0
	std::vector<int> torrent_handle::piece_priorities() const
	{
		aux::vector<int, piece_index_t> ret;
		auto retp = &ret;
		sync_call(&torrent::piece_priorities, retp);
		return ret;
	}
示例#5
0
void torrent_handle::get_download_queue(std::vector<partial_piece_info>& queue) const
{
    auto queuep = &queue;
    sync_call(&torrent::get_download_queue, queuep);
}
示例#6
0
void torrent_handle::get_peer_info(std::vector<peer_info>& v) const
{
    auto vp = &v;
    sync_call(&torrent::get_peer_info, vp);
}
示例#7
0
void torrent_handle::get_full_peer_list(std::vector<peer_list_entry>& v) const
{
    auto vp = &v;
    sync_call(&torrent::get_full_peer_list, vp);
}
示例#8
0
void torrent_handle::add_piece(int piece, char const* data, int flags) const
{
    sync_call(&torrent::add_piece, piece, data, flags);
}
示例#9
0
void torrent_handle::file_progress(std::vector<float>& progress) const
{
    sync_call(&torrent::file_progress_float, std::ref(progress));
}
示例#10
0
void torrent_handle::piece_availability(std::vector<int>& avail) const
{
    auto availr = std::ref(avail);
    sync_call(&torrent::piece_availability, availr);
}
示例#11
0
torrent_status torrent_handle::status(std::uint32_t flags) const
{
    torrent_status st;
    sync_call(&torrent::status, &st, flags);
    return st;
}
示例#12
0
void torrent_handle::file_progress(std::vector<std::int64_t>& progress, int flags) const
{
    sync_call(&torrent::file_progress, std::ref(progress), flags);
}
示例#13
0
	void torrent_handle::file_progress(std::vector<float>& progress) const
	{
		sync_call(&torrent::file_progress_float, std::ref(static_cast<aux::vector<float, file_index_t>&>(progress)));
	}
示例#14
0
	void torrent_handle::piece_availability(std::vector<int>& avail) const
	{
		auto availr = std::ref(static_cast<aux::vector<int, piece_index_t>&>(avail));
		sync_call(&torrent::piece_availability, availr);
	}
示例#15
0
	void torrent_handle::file_progress(std::vector<std::int64_t>& progress, int flags) const
	{
		auto& arg = static_cast<aux::vector<std::int64_t, file_index_t>&>(progress);
		sync_call(&torrent::file_progress, std::ref(arg), flags);
	}