Public Types | |
| enum | open_flags { read_flag = 1, write_flag = 2 } |
| enum | seek_mode { seek_begin = FILE_BEGIN, seek_from_here = FILE_CURRENT, seek_end = FILE_END } |
Public Member Functions | |
| impl () | |
| impl (fs::path const &path, int mode) | |
| ~impl () | |
| void | open (fs::path const &path, int mode) |
| void | close () |
| size_type | read (char *buf, size_type num_bytes) |
| size_type | write (const char *buf, size_type num_bytes) |
| size_type | seek (size_type offset, int m) |
| size_type | tell () |
| impl () | |
| void | open (const char *file_name, open_flags flags) |
| void | close () |
| ~impl () | |
| size_type | write (const char *buffer, size_type num_bytes) |
| size_type | read (char *buffer, size_type num_bytes) |
| size_type | seek (size_type pos, seek_mode from_where) |
| size_type | tell () |
Public Attributes | |
| int | m_fd |
| int | m_open_mode |
Private Attributes | |
| HANDLE | m_file_handle |
Definition at line 110 of file file.cpp.
| libtorrent::file::impl::impl | ( | fs::path const & | path, | |
| int | mode | |||
| ) | [inline] |
| libtorrent::file::impl::~impl | ( | ) | [inline] |
| libtorrent::file::impl::impl | ( | ) | [inline] |
| libtorrent::file::impl::~impl | ( | ) | [inline] |
| void libtorrent::file::impl::open | ( | fs::path const & | path, | |
| int | mode | |||
| ) | [inline] |
Definition at line 129 of file file.cpp.
References close(), m_fd, m_open_mode, map_open_mode(), and utf8_native().
Referenced by impl().
| void libtorrent::file::impl::close | ( | ) | [inline] |
| size_type libtorrent::file::impl::tell | ( | ) | [inline] |
| void libtorrent::file::impl::open | ( | const char * | file_name, | |
| open_flags | flags | |||
| ) | [inline] |
Definition at line 111 of file file_win.cpp.
References close(), m_file_handle, read_flag, simple_client::s, throw_exception(), utf8_native(), and write_flag.
| void libtorrent::file::impl::close | ( | ) | [inline] |
Definition at line 169 of file file_win.cpp.
References FALSE, m_file_handle, and throw_exception().
Definition at line 189 of file file_win.cpp.
References FALSE, m_file_handle, and throw_exception().
Definition at line 211 of file file_win.cpp.
References FALSE, m_file_handle, LARGE_INTEGER::QuadPart, seek_begin, seek_end, and throw_exception().
| size_type libtorrent::file::impl::tell | ( | ) | [inline] |
Definition at line 228 of file file_win.cpp.
References FALSE, m_file_handle, pos(), LARGE_INTEGER::QuadPart, and throw_exception().
HANDLE libtorrent::file::impl::m_file_handle [private] |
1.5.6