bitz-server  2.0.3
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
fmt::File Class Reference

Public Types

enum  { RDONLY = FMT_POSIX(O_RDONLY), WRONLY = FMT_POSIX(O_WRONLY), RDWR = FMT_POSIX(O_RDWR) }
 

Public Member Functions

FMT_API File (CStringRef path, int oflag)
 
 File (Proxy p) FMT_NOEXCEPT
 
 File (File &other) FMT_NOEXCEPT
 
Fileoperator= (Proxy p)
 
Fileoperator= (File &other)
 
 operator Proxy () 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)