openMSX
Public Member Functions | List of all members
openmsx::MemoryBufferFile Class Referencefinal

#include <MemoryBufferFile.hh>

Inheritance diagram for openmsx::MemoryBufferFile:
Inheritance graph
[legend]
Collaboration diagram for openmsx::MemoryBufferFile:
Collaboration graph
[legend]

Public Member Functions

 MemoryBufferFile (span< const uint8_t > buffer_)
 
void read (void *dst, size_t num) override
 
void write (const void *src, size_t num) override
 
size_t getSize () override
 
void seek (size_t newPos) override
 
size_t getPos () override
 
void flush () override
 
std::string getURL () const override
 
bool isReadOnly () const override
 
time_t getModificationDate () override
 
- Public Member Functions inherited from openmsx::FileBase
virtual ~FileBase ()=default
 
virtual span< uint8_t > mmap ()
 
virtual void munmap ()
 
virtual void truncate (size_t size)
 
virtual std::string getLocalReference ()
 
virtual std::string getOriginalName ()
 

Detailed Description

Definition at line 10 of file MemoryBufferFile.hh.

Constructor & Destructor Documentation

◆ MemoryBufferFile()

openmsx::MemoryBufferFile::MemoryBufferFile ( span< const uint8_t >  buffer_)
inline

Member Function Documentation

◆ flush()

void openmsx::MemoryBufferFile::flush ( )
overridevirtual

Implements openmsx::FileBase.

Definition at line 38 of file MemoryBufferFile.cc.

Referenced by MemoryBufferFile().

◆ getModificationDate()

time_t openmsx::MemoryBufferFile::getModificationDate ( )
overridevirtual

Implements openmsx::FileBase.

Definition at line 53 of file MemoryBufferFile.cc.

Referenced by MemoryBufferFile().

◆ getPos()

size_t openmsx::MemoryBufferFile::getPos ( )
overridevirtual

Implements openmsx::FileBase.

Definition at line 33 of file MemoryBufferFile.cc.

Referenced by MemoryBufferFile(), and read().

◆ getSize()

size_t openmsx::MemoryBufferFile::getSize ( )
overridevirtual

Implements openmsx::FileBase.

Definition at line 23 of file MemoryBufferFile.cc.

Referenced by MemoryBufferFile(), and read().

◆ getURL()

std::string openmsx::MemoryBufferFile::getURL ( ) const
overridevirtual

Implements openmsx::FileBase.

Definition at line 43 of file MemoryBufferFile.cc.

Referenced by MemoryBufferFile().

◆ isReadOnly()

bool openmsx::MemoryBufferFile::isReadOnly ( ) const
overridevirtual

Implements openmsx::FileBase.

Definition at line 48 of file MemoryBufferFile.cc.

Referenced by MemoryBufferFile().

◆ read()

void openmsx::MemoryBufferFile::read ( void *  dst,
size_t  num 
)
overridevirtual

Implements openmsx::FileBase.

Definition at line 9 of file MemoryBufferFile.cc.

References getPos(), and getSize().

Referenced by MemoryBufferFile().

◆ seek()

void openmsx::MemoryBufferFile::seek ( size_t  newPos)
overridevirtual

Implements openmsx::FileBase.

Definition at line 28 of file MemoryBufferFile.cc.

Referenced by MemoryBufferFile().

◆ write()

void openmsx::MemoryBufferFile::write ( const void *  src,
size_t  num 
)
overridevirtual

Implements openmsx::FileBase.

Definition at line 18 of file MemoryBufferFile.cc.

Referenced by MemoryBufferFile().


The documentation for this class was generated from the following files: