#include <file.hpp>
Public Member Functions | |
| file () | |
| file (boost::filesystem::path const &p, open_mode m) | |
| ~file () | |
| void | open (boost::filesystem::path const &p, open_mode m) |
| void | close () |
| size_type | write (const char *, size_type num_bytes) |
| size_type | read (char *, size_type num_bytes) |
| size_type | seek (size_type pos, seek_mode m=begin) |
| size_type | tell () |
Static Public Attributes | |
| static const seek_mode | begin |
| static const seek_mode | end |
| static const open_mode | in |
| static const open_mode | out |
Private Attributes | |
| const std::auto_ptr< impl > | m_impl |
Classes | |
| struct | impl |
| class | open_mode |
| class | seek_mode |
Definition at line 61 of file file.hpp.
| libtorrent::file::file | ( | boost::filesystem::path const & | p, | |
| file::open_mode | m | |||
| ) |
| void libtorrent::file::open | ( | boost::filesystem::path const & | p, | |
| file::open_mode | m | |||
| ) |
Definition at line 270 of file file.cpp.
References m_impl, and libtorrent::file::open_mode::m_mask.
| size_type libtorrent::file::seek | ( | size_type | pos, | |
| file::seek_mode | m = begin | |||
| ) |
const file::seek_mode libtorrent::file::begin [static] |
const file::seek_mode libtorrent::file::end [static] |
const file::open_mode libtorrent::file::in [static] |
Definition at line 104 of file file.hpp.
Referenced by libtorrent::storage::read(), and libtorrent::storage::write().
const file::open_mode libtorrent::file::out [static] |
Definition at line 105 of file file.hpp.
Referenced by libtorrent::piece_manager::impl::check_files(), and libtorrent::storage::write().
const std::auto_ptr<impl> libtorrent::file::m_impl [private] |
1.5.6