openMSX
|
#include <FileBase.hh>
Public Member Functions | |
virtual | ~FileBase ()=default |
virtual void | read (void *buffer, size_t num)=0 |
virtual void | write (const void *buffer, size_t num)=0 |
virtual span< const uint8_t > | mmap () |
virtual void | munmap () |
virtual size_t | getSize ()=0 |
virtual void | seek (size_t pos)=0 |
virtual size_t | getPos ()=0 |
virtual void | truncate (size_t size) |
virtual void | flush ()=0 |
virtual const std::string & | getURL () const =0 |
virtual std::string | getLocalReference () |
virtual std::string_view | getOriginalName () |
virtual bool | isReadOnly () const =0 |
virtual time_t | getModificationDate ()=0 |
Definition at line 11 of file FileBase.hh.
|
virtualdefault |
|
pure virtual |
Implemented in openmsx::MemoryBufferFile, openmsx::LocalFile, and openmsx::CompressedFileAdapter.
|
virtual |
Reimplemented in openmsx::LocalFile.
Definition at line 49 of file FileBase.cc.
|
pure virtual |
Implemented in openmsx::MemoryBufferFile, openmsx::LocalFile, and openmsx::CompressedFileAdapter.
|
virtual |
Reimplemented in openmsx::CompressedFileAdapter.
Definition at line 56 of file FileBase.cc.
References openmsx::FileOperations::getFilename(), and getURL().
|
pure virtual |
Implemented in openmsx::MemoryBufferFile, openmsx::LocalFile, and openmsx::CompressedFileAdapter.
Referenced by mmap().
|
pure virtual |
Implemented in openmsx::MemoryBufferFile, openmsx::LocalFile, and openmsx::CompressedFileAdapter.
Referenced by mmap(), and truncate().
|
pure virtual |
Implemented in openmsx::MemoryBufferFile, openmsx::LocalFile, and openmsx::CompressedFileAdapter.
Referenced by getOriginalName().
|
pure virtual |
Implemented in openmsx::MemoryBufferFile, openmsx::LocalFile, and openmsx::CompressedFileAdapter.
|
virtual |
Reimplemented in openmsx::LocalFile, and openmsx::CompressedFileAdapter.
Definition at line 8 of file FileBase.cc.
References openmsx::MemBuffer< T, ALIGNMENT >::data(), openmsx::MemBuffer< T, ALIGNMENT >::empty(), getPos(), getSize(), read(), seek(), and utf8::unchecked::size().
|
virtual |
Reimplemented in openmsx::LocalFile, and openmsx::CompressedFileAdapter.
Definition at line 24 of file FileBase.cc.
References openmsx::MemBuffer< T, ALIGNMENT >::clear().
|
pure virtual |
Implemented in openmsx::MemoryBufferFile, openmsx::LocalFile, and openmsx::CompressedFileAdapter.
Referenced by mmap().
|
pure virtual |
Implemented in openmsx::LocalFile, openmsx::CompressedFileAdapter, and openmsx::MemoryBufferFile.
Referenced by mmap(), and truncate().
|
virtual |
Reimplemented in openmsx::LocalFile, and openmsx::CompressedFileAdapter.
Definition at line 29 of file FileBase.cc.
References openmsx::BUF_SIZE, getSize(), gl::min(), seek(), and write().
|
pure virtual |
Implemented in openmsx::MemoryBufferFile, openmsx::LocalFile, and openmsx::CompressedFileAdapter.
Referenced by truncate().