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; }
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; }
std::vector<int> torrent_handle::file_priorities() const { std::vector<int> ret; auto retp = &ret; sync_call(&torrent::file_priorities, retp); return ret; }
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; }
void torrent_handle::get_download_queue(std::vector<partial_piece_info>& queue) const { auto queuep = &queue; sync_call(&torrent::get_download_queue, queuep); }
void torrent_handle::get_peer_info(std::vector<peer_info>& v) const { auto vp = &v; sync_call(&torrent::get_peer_info, vp); }
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); }
void torrent_handle::add_piece(int piece, char const* data, int flags) const { sync_call(&torrent::add_piece, piece, data, flags); }
void torrent_handle::file_progress(std::vector<float>& progress) const { sync_call(&torrent::file_progress_float, std::ref(progress)); }
void torrent_handle::piece_availability(std::vector<int>& avail) const { auto availr = std::ref(avail); sync_call(&torrent::piece_availability, availr); }
torrent_status torrent_handle::status(std::uint32_t flags) const { torrent_status st; sync_call(&torrent::status, &st, flags); return st; }
void torrent_handle::file_progress(std::vector<std::int64_t>& progress, int flags) const { sync_call(&torrent::file_progress, std::ref(progress), flags); }
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))); }
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); }
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); }