#include <storage.hpp>
Public Member Functions | |
| storage (const torrent_info &info, const boost::filesystem::path &path, file_pool &fp) | |
| void | swap (storage &) |
| size_type | read (char *buf, int slot, int offset, int size) |
| void | write (const char *buf, int slot, int offset, int size) |
| bool | move_storage (boost::filesystem::path save_path) |
| void | release_files () |
| void | shuffle () |
Private Attributes | |
| boost::shared_ptr< impl > | m_pimpl |
Classes | |
| class | impl |
Definition at line 90 of file storage.hpp.
| libtorrent::storage::storage | ( | const torrent_info & | info, | |
| const boost::filesystem::path & | path, | |||
| file_pool & | fp | |||
| ) |
| void libtorrent::storage::swap | ( | storage & | other | ) |
| size_type libtorrent::storage::read | ( | char * | buf, | |
| int | slot, | |||
| int | offset, | |||
| int | size | |||
| ) |
Definition at line 443 of file storage.cpp.
References libtorrent::file::in, simple_client::info, and m_pimpl.
Referenced by libtorrent::piece_manager::impl::allocate_slot_for_piece(), libtorrent::piece_manager::impl::allocate_slots(), libtorrent::piece_manager::impl::check_files(), libtorrent::piece_manager::impl::piece_crc(), libtorrent::piece_manager::impl::read(), run_storage_tests(), and shuffle().
| void libtorrent::storage::write | ( | const char * | buf, | |
| int | slot, | |||
| int | offset, | |||
| int | size | |||
| ) |
Definition at line 567 of file storage.cpp.
References libtorrent::file::in, simple_client::info, m_pimpl, libtorrent::file::out, and pos().
Referenced by libtorrent::piece_manager::impl::allocate_slot_for_piece(), libtorrent::piece_manager::impl::allocate_slots(), libtorrent::piece_manager::impl::check_files(), run_storage_tests(), shuffle(), and libtorrent::piece_manager::impl::write().
| bool libtorrent::storage::move_storage | ( | boost::filesystem::path | save_path | ) |
| void libtorrent::storage::release_files | ( | ) |
Definition at line 358 of file storage.cpp.
References m_pimpl.
Referenced by libtorrent::piece_manager::impl::release_files(), and run_storage_tests().
| void libtorrent::storage::shuffle | ( | ) |
Definition at line 414 of file storage.cpp.
References asio::placeholders::iterator, m_pimpl, pieces(), read(), and write().
boost::shared_ptr<impl> libtorrent::storage::m_pimpl [private] |
Definition at line 120 of file storage.hpp.
Referenced by read(), release_files(), shuffle(), swap(), and write().
1.5.6