15 : ram(config, name, description,
size) {}
20 [[nodiscard]]
size_t size()
const {
24 [[nodiscard]]
const std::string&
getName()
const {
29 [[nodiscard]]
byte read(
size_t addr)
const {
33 [[nodiscard]]
const byte&
operator[](
size_t addr)
const {
38 [[nodiscard]]
auto end()
const {
return ram.
end(); }
41 void write(
size_t addr,
byte value) {
42 writeSinceLastReverseSnapshot =
true;
47 writeSinceLastReverseSnapshot =
true;
56 writeSinceLastReverseSnapshot =
true;
60 template<
typename Archive>
61 void serialize(Archive& ar,
unsigned version);
65 bool writeSinceLastReverseSnapshot =
true;
const std::string & getName() const
byte read(size_t addr) const
const std::string & getName() const
const byte & operator[](size_t addr) const
TrackedRam(const DeviceConfig &config, const std::string &name, static_string_view description, size_t size)
void write(size_t addr, byte value)
TrackedRam(const XMLElement &xml, size_t size)
std::span< byte > getWriteBackdoor()
void serialize(Archive &ar, unsigned version)
This file implemented 3 utility functions: