openMSX
TrackedRam.cc
Go to the documentation of this file.
1 #include "TrackedRam.hh"
2 #include "serialize.hh"
3 
4 namespace openmsx {
5 
6 template<typename Archive>
7 void TrackedRam::serialize(Archive& ar, unsigned /*version*/)
8 {
9  // Note: This is the exact same serialization format as the Ram class.
10  // This allows to change from Ram to TrackedRam without having to
11  // increase the class serialization version (of the user).
13  ar.serialize_blob("ram", &ram[0], getSize(), diff);
15 }
17 
18 } // namespace openmsx
bool getEnum() const noexcept
Definition: EnumSetting.hh:96
#define INSTANTIATE_SERIALIZE_METHODS(CLASS)
Definition: serialize.hh:981