![]() |
Ark Server API (ASA) - Wiki
|
#include <posix.h>
Classes | |
| struct | Proxy |
Public Types | |
| enum | { RDONLY = FMT_POSIX(O_RDONLY) , WRONLY = FMT_POSIX(O_WRONLY) , RDWR = FMT_POSIX(O_RDWR) } |
Public Member Functions | |
| File () FMT_NOEXCEPT | |
| FMT_API | File (CStringRef path, int oflag) |
| File (Proxy p) FMT_NOEXCEPT | |
| File (File &other) FMT_NOEXCEPT | |
| File & | operator= (Proxy p) |
| File & | operator= (File &other) |
| operator Proxy () FMT_NOEXCEPT | |
| FMT_API | ~File () FMT_NOEXCEPT |
| int | descriptor () const FMT_NOEXCEPT |
| FMT_API void | close () |
| FMT_API LongLong | size () const |
| FMT_API std::size_t | read (void *buffer, std::size_t count) |
| FMT_API std::size_t | write (const void *buffer, std::size_t count) |
| FMT_API void | dup2 (int fd) |
| FMT_API void | dup2 (int fd, ErrorCode &ec) FMT_NOEXCEPT |
| FMT_API BufferedFile | fdopen (const char *mode) |
Static Public Member Functions | |
| static FMT_API File | dup (int fd) |
| static FMT_API void | pipe (File &read_end, File &write_end) |
Private Member Functions | |
| File (int fd) | |
Private Attributes | |
| int | fd_ |
|
inlineexplicitprivate |
| fmt::File::File | ( | fmt::CStringRef | path, |
| int | oflag ) |
| void fmt::File::close | ( | ) |
| fmt::BufferedFile fmt::File::fdopen | ( | const char * | mode | ) |
| std::size_t fmt::File::read | ( | void * | buffer, |
| std::size_t | count ) |
| fmt::LongLong fmt::File::size | ( | ) | const |