openMSX
|
#include <CompressedFileAdapter.hh>
Classes | |
struct | Decompressed |
Public Member Functions | |
void | read (std::span< uint8_t > buffer) final |
void | write (std::span< const uint8_t > buffer) final |
std::span< const uint8_t > | mmap () final |
void | munmap () final |
size_t | getSize () final |
void | seek (size_t pos) final |
size_t | getPos () final |
void | truncate (size_t size) final |
void | flush () final |
const std::string & | getURL () const final |
std::string_view | getOriginalName () final |
bool | isReadOnly () const final |
time_t | getModificationDate () final |
Public Member Functions inherited from openmsx::FileBase | |
virtual | ~FileBase ()=default |
virtual std::string | getLocalReference () |
Protected Member Functions | |
CompressedFileAdapter (std::unique_ptr< FileBase > file) | |
~CompressedFileAdapter () override | |
virtual void | decompress (FileBase &file, Decompressed &decompressed)=0 |
Definition at line 10 of file CompressedFileAdapter.hh.
|
explicitprotected |
Definition at line 19 of file CompressedFileAdapter.cc.
|
overrideprotected |
Definition at line 24 of file CompressedFileAdapter.cc.
|
protectedpure virtual |
Referenced by getOriginalName(), getSize(), mmap(), and read().
|
finalvirtual |
Implements openmsx::FileBase.
Definition at line 105 of file CompressedFileAdapter.cc.
|
finalvirtual |
Implements openmsx::FileBase.
Definition at line 126 of file CompressedFileAdapter.cc.
References openmsx::CompressedFileAdapter::Decompressed::cachedModificationDate.
|
finalvirtual |
Reimplemented from openmsx::FileBase.
Definition at line 115 of file CompressedFileAdapter.cc.
References decompress(), and openmsx::CompressedFileAdapter::Decompressed::originalName.
|
finalvirtual |
Implements openmsx::FileBase.
Definition at line 95 of file CompressedFileAdapter.cc.
|
finalvirtual |
Implements openmsx::FileBase.
Definition at line 84 of file CompressedFileAdapter.cc.
References openmsx::CompressedFileAdapter::Decompressed::buf, decompress(), and openmsx::MemBuffer< T, ALIGNMENT >::size().
|
finalvirtual |
Implements openmsx::FileBase.
Definition at line 110 of file CompressedFileAdapter.cc.
References openmsx::CompressedFileAdapter::Decompressed::cachedURL.
Referenced by ~CompressedFileAdapter().
|
finalvirtual |
Implements openmsx::FileBase.
Definition at line 121 of file CompressedFileAdapter.cc.
|
finalvirtual |
Reimplemented from openmsx::FileBase.
Definition at line 73 of file CompressedFileAdapter.cc.
References openmsx::CompressedFileAdapter::Decompressed::buf, and decompress().
|
finalvirtual |
Reimplemented from openmsx::FileBase.
Definition at line 79 of file CompressedFileAdapter.cc.
|
finalvirtual |
Implements openmsx::FileBase.
Definition at line 58 of file CompressedFileAdapter.cc.
References openmsx::CompressedFileAdapter::Decompressed::buf, ranges::copy(), decompress(), openmsx::MemBuffer< T, ALIGNMENT >::size(), and openmsx::MemBuffer< T, ALIGNMENT >::subspan().
|
finalvirtual |
Implements openmsx::FileBase.
Definition at line 90 of file CompressedFileAdapter.cc.
|
finalvirtual |
Reimplemented from openmsx::FileBase.
Definition at line 100 of file CompressedFileAdapter.cc.
|
finalvirtual |
Implements openmsx::FileBase.
Definition at line 68 of file CompressedFileAdapter.cc.