openMSX
|
#include <LocalFile.hh>
Public Member Functions | |
LocalFile (std::string filename, File::OpenMode mode) | |
LocalFile (std::string filename, const char *mode) | |
~LocalFile () override | |
void | read (std::span< uint8_t > buffer) override |
void | write (std::span< const uint8_t > buffer) override |
size_t | getSize () override |
void | seek (size_t pos) override |
size_t | getPos () override |
void | flush () override |
const std::string & | getURL () const override |
std::string | getLocalReference () override |
bool | isReadOnly () const override |
time_t | getModificationDate () override |
void | preCacheFile () |
Public Member Functions inherited from openmsx::FileBase | |
virtual | ~FileBase ()=default |
virtual std::span< const uint8_t > | mmap () |
virtual void | munmap () |
virtual void | truncate (size_t size) |
virtual std::string_view | getOriginalName () |
Definition at line 17 of file LocalFile.hh.
openmsx::LocalFile::LocalFile | ( | std::string | filename, |
File::OpenMode | mode | ||
) |
Definition at line 26 of file LocalFile.cc.
References openmsx::File::CREATE, openmsx::FileOperations::getNativePath(), getSize(), openmsx::FileOperations::mkdirp(), openmsx::FileOperations::openFile(), openmsx::File::SAVE_PERSISTENT, and openmsx::File::TRUNCATE.
openmsx::LocalFile::LocalFile | ( | std::string | filename, |
const char * | mode | ||
) |
Definition at line 76 of file LocalFile.cc.
References openmsx::FileOperations::getNativePath(), getSize(), and openmsx::FileOperations::openFile().
|
override |
Definition at line 95 of file LocalFile.cc.
References openmsx::FileBase::munmap().
|
overridevirtual |
Implements openmsx::FileBase.
Definition at line 265 of file LocalFile.cc.
|
overridevirtual |
Reimplemented from openmsx::FileBase.
Definition at line 275 of file LocalFile.cc.
|
overridevirtual |
Implements openmsx::FileBase.
Definition at line 285 of file LocalFile.cc.
|
overridevirtual |
Implements openmsx::FileBase.
Definition at line 250 of file LocalFile.cc.
|
overridevirtual |
Implements openmsx::FileBase.
Definition at line 215 of file LocalFile.cc.
References getURL().
Referenced by LocalFile(), and LocalFile().
|
overridevirtual |
|
overridevirtual |
Implements openmsx::FileBase.
Definition at line 280 of file LocalFile.cc.
void openmsx::LocalFile::preCacheFile | ( | ) |
Definition at line 100 of file LocalFile.cc.
References openmsx::FileOperations::getNativePath().
|
overridevirtual |
Implements openmsx::FileBase.
Definition at line 105 of file LocalFile.cc.
|
overridevirtual |
Implements openmsx::FileBase.
Definition at line 238 of file LocalFile.cc.
|
overridevirtual |
Implements openmsx::FileBase.
Definition at line 117 of file LocalFile.cc.