class FileWrapper
Defined at line 68 of file ../../src/storage/minfs/host.h
FileWrapper is a wrapper around an open file descriptor,
which abstracts away the "hostness" or "targetness"
of the underlying target. Additionally, it provides
RAII semantics to the underlying file descriptor.
Public Methods
void FileWrapper ()
Defined at line 70 of file ../../src/storage/minfs/host.h
void FileWrapper (const FileWrapper & )
Not copyable or movable
Defined at line 73 of file ../../src/storage/minfs/host.h
FileWrapper & operator= (const FileWrapper & )
Defined at line 74 of file ../../src/storage/minfs/host.h
void FileWrapper (FileWrapper && )
Defined at line 75 of file ../../src/storage/minfs/host.h
FileWrapper & operator= (FileWrapper && )
Defined at line 76 of file ../../src/storage/minfs/host.h
void ~FileWrapper ()
Defined at line 78 of file ../../src/storage/minfs/host.h
int Open (const char * path, int flags, mode_t mode, FileWrapper * out)
Defined at line 80 of file ../../src/storage/minfs/host.h
int Close ()
Defined at line 94 of file ../../src/storage/minfs/host.h
ssize_t Read (void * buf, size_t count)
Defined at line 102 of file ../../src/storage/minfs/host.h
ssize_t Write (void * buf, size_t count)
Defined at line 105 of file ../../src/storage/minfs/host.h