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 69 of file LocalFile.cc.
References openmsx::FileOperations::getNativePath(), getSize(), and openmsx::FileOperations::openFile().
|
override |
Definition at line 81 of file LocalFile.cc.
References openmsx::FileBase::munmap().
|
overridevirtual |
Implements openmsx::FileBase.
Definition at line 251 of file LocalFile.cc.
|
overridevirtual |
Reimplemented from openmsx::FileBase.
Definition at line 261 of file LocalFile.cc.
|
overridevirtual |
Implements openmsx::FileBase.
Definition at line 271 of file LocalFile.cc.
|
overridevirtual |
Implements openmsx::FileBase.
Definition at line 236 of file LocalFile.cc.
|
overridevirtual |
Implements openmsx::FileBase.
Definition at line 201 of file LocalFile.cc.
References getURL().
Referenced by LocalFile(), and LocalFile().
|
overridevirtual |
|
overridevirtual |
Implements openmsx::FileBase.
Definition at line 266 of file LocalFile.cc.
void openmsx::LocalFile::preCacheFile | ( | ) |
Definition at line 86 of file LocalFile.cc.
References openmsx::FileOperations::getNativePath().
|
overridevirtual |
Implements openmsx::FileBase.
Definition at line 91 of file LocalFile.cc.
|
overridevirtual |
Implements openmsx::FileBase.
Definition at line 224 of file LocalFile.cc.
|
overridevirtual |
Implements openmsx::FileBase.
Definition at line 103 of file LocalFile.cc.