Livox SDK API  V2.2.0
fmt::v5::file Class Reference

#include <posix.h>

Public Types

enum  { RDONLY = O_RDONLY, WRONLY = O_WRONLY, RDWR = O_RDWR }
 

Public Member Functions

 file () throw ()
 
 file (cstring_view path, int oflag)
 
 file (file &&other) throw ()
 
fileoperator= (file &&other)
 
 ~file () throw ()
 
int descriptor () const throw ()
 
void close ()
 
long long size () const
 
std::size_t read (void *buffer, std::size_t count)
 
std::size_t write (const void *buffer, std::size_t count)
 
void dup2 (int fd)
 
void dup2 (int fd, error_code &ec) throw ()
 
buffered_file fdopen (const char *mode)
 

Static Public Member Functions

static file dup (int fd)
 
static void pipe (file &read_end, file &write_end)
 

Detailed Description

Definition at line 188 of file posix.h.

Member Enumeration Documentation

anonymous enum
Enumerator
RDONLY 
WRONLY 
RDWR 

Definition at line 197 of file posix.h.

Constructor & Destructor Documentation

fmt::v5::file::file ( )
throw (
)
inline

Definition at line 204 of file posix.h.

fmt::v5::file::file ( cstring_view  path,
int  oflag 
)
fmt::v5::file::file ( file &&  other)
throw (
)
inline

Definition at line 214 of file posix.h.

fmt::v5::file::~file ( )
throw (
)

Member Function Documentation

void fmt::v5::file::close ( )
int fmt::v5::file::descriptor ( ) const
throw (
)
inline

Definition at line 229 of file posix.h.

static file fmt::v5::file::dup ( int  fd)
static
void fmt::v5::file::dup2 ( int  fd)
void fmt::v5::file::dup2 ( int  fd,
error_code ec 
)
throw (
)
buffered_file fmt::v5::file::fdopen ( const char *  mode)
file& fmt::v5::file::operator= ( file &&  other)
inline

Definition at line 218 of file posix.h.

static void fmt::v5::file::pipe ( file read_end,
file write_end 
)
static
std::size_t fmt::v5::file::read ( void *  buffer,
std::size_t  count 
)
long long fmt::v5::file::size ( ) const
std::size_t fmt::v5::file::write ( const void *  buffer,
std::size_t  count 
)

The documentation for this class was generated from the following file: