openMSX
|
#include <MemoryBufferFile.hh>
Public Member Functions | |
MemoryBufferFile (std::span< const uint8_t > buffer_) | |
void | read (std::span< uint8_t > dst) override |
void | write (std::span< const uint8_t > src) override |
size_t | getSize () override |
void | seek (size_t newPos) override |
size_t | getPos () override |
void | flush () override |
const std::string & | getURL () const override |
bool | isReadOnly () const override |
time_t | getModificationDate () override |
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 | getLocalReference () |
virtual std::string_view | getOriginalName () |
Definition at line 10 of file MemoryBufferFile.hh.
|
inlineexplicit |
Definition at line 13 of file MemoryBufferFile.hh.
|
overridevirtual |
Implements openmsx::FileBase.
Definition at line 38 of file MemoryBufferFile.cc.
|
overridevirtual |
Implements openmsx::FileBase.
Definition at line 54 of file MemoryBufferFile.cc.
|
overridevirtual |
Implements openmsx::FileBase.
Definition at line 33 of file MemoryBufferFile.cc.
Referenced by read().
|
overridevirtual |
Implements openmsx::FileBase.
Definition at line 23 of file MemoryBufferFile.cc.
Referenced by read().
|
overridevirtual |
Implements openmsx::FileBase.
Definition at line 43 of file MemoryBufferFile.cc.
|
overridevirtual |
Implements openmsx::FileBase.
Definition at line 49 of file MemoryBufferFile.cc.
|
overridevirtual |
Implements openmsx::FileBase.
Definition at line 9 of file MemoryBufferFile.cc.
References ranges::copy(), getPos(), and getSize().
|
overridevirtual |
Implements openmsx::FileBase.
Definition at line 28 of file MemoryBufferFile.cc.
|
overridevirtual |
Implements openmsx::FileBase.
Definition at line 18 of file MemoryBufferFile.cc.