openMSX
RamDSKDiskImage.hh
Go to the documentation of this file.
1#ifndef RAMDSKDISKIMAGE_HH
2#define RAMDSKDISKIMAGE_HH
3
4#include "SectorBasedDisk.hh"
5#include "MemBuffer.hh"
6
7namespace openmsx {
8
9class RamDSKDiskImage final : public SectorBasedDisk
10{
11public:
12 explicit RamDSKDiskImage(size_t size = 720 * 1024);
13
14private:
15 // SectorBasedDisk
16 void readSectorsImpl(
17 std::span<SectorBuffer> buffers, size_t startSector) override;
18 void writeSectorImpl(size_t sector, const SectorBuffer& buf) override;
19 [[nodiscard]] bool isWriteProtectedImpl() const override;
20
21private:
23};
24
25} // namespace openmsx
26
27#endif
This class manages the lifetime of a block of memory.
Definition MemBuffer.hh:29
Abstract class for disk images that only represent the logical sector information (so not the raw tra...
This file implemented 3 utility functions:
Definition Autofire.cc:9