DebugServer2
Loading...
Searching...
No Matches
ds2::Host::File Class Reference

Public Member Functions

 File (std::string const &path, OpenFlags flags, uint32_t mode)
 
 File (const File &other)=delete
 
Fileoperator= (const File &other)=delete
 
 File (File &&other)
 
Fileoperator= (File &&other)
 
ErrorCode pread (ByteVector &buf, uint64_t &count, uint64_t offset)
 
ErrorCode pwrite (ByteVector const &buf, uint64_t &count, uint64_t offset)
 
ErrorCode fstat (ByteVector &buffer) const
 
bool valid () const
 
ErrorCode lastError () const
 

Static Public Member Functions

static ErrorCode chmod (std::string const &path, uint32_t mode)
 
static ErrorCode unlink (std::string const &path)
 
static ErrorCode createDirectory (std::string const &path, uint32_t flags)
 
static ErrorCode fileSize (std::string const &path, uint64_t &size)
 
static ErrorCode fileMode (std::string const &path, uint32_t &mode)
 

Protected Attributes

int _fd
 
ErrorCode _lastError
 

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