openMSX
|
#include <Ram.hh>
Public Member Functions | |
Ram (const DeviceConfig &config, const std::string &name, static_string_view description, unsigned size) | |
Create Ram object with an associated debuggable. More... | |
Ram (const XMLElement &xml, unsigned size) | |
Create Ram object without debuggable. More... | |
const byte & | operator[] (unsigned addr) const |
byte & | operator[] (unsigned addr) |
unsigned | getSize () const |
const std::string & | getName () const |
void | clear (byte c=0xff) |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
openmsx::Ram::Ram | ( | const DeviceConfig & | config, |
const std::string & | name, | ||
static_string_view | description, | ||
unsigned | size | ||
) |
openmsx::Ram::Ram | ( | const XMLElement & | xml, |
unsigned | size | ||
) |
void openmsx::Ram::clear | ( | byte | c = 0xff | ) |
Definition at line 35 of file Ram.cc.
References openmsx::MemBuffer< T, ALIGNMENT >::data(), openmsx::XMLElement::findChild(), and getSize().
Referenced by openmsx::CheckedRam::clear(), openmsx::VDPVRAM::clear(), openmsx::TrackedRam::clear(), openmsx::MSXMegaRam::powerUp(), Ram(), and openmsx::PanasonicAudioPeriphery::reset().
const std::string & openmsx::Ram::getName | ( | ) | const |
Definition at line 79 of file Ram.cc.
Referenced by openmsx::TrackedRam::getName(), and openmsx::CheckedRam::read().
|
inline |
Definition at line 44 of file Ram.hh.
Referenced by openmsx::VDPVRAM::clear(), clear(), openmsx::CheckedRam::getSize(), openmsx::TrackedRam::getSize(), openmsx::MSXSCCPlusCart::MSXSCCPlusCart(), openmsx::PanasonicMemory::registerRam(), and openmsx::MSXSCCPlusCart::serialize().
|
inline |
void openmsx::Ram::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
Definition at line 104 of file Ram.cc.
References openmsx::MemBuffer< T, ALIGNMENT >::data().