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 
7 namespace openmsx {
8 
9 class RamDSKDiskImage final : public SectorBasedDisk
10 {
11 public:
12  explicit RamDSKDiskImage(size_t size = 720 * 1024);
13 
14 private:
15  // SectorBasedDisk
16  void readSectorsImpl(
17  SectorBuffer* buffers, size_t startSector, size_t num) override;
18  void writeSectorImpl(size_t sector, const SectorBuffer& buf) override;
19  [[nodiscard]] bool isWriteProtectedImpl() const override;
20 
21 private:
23 };
24 
25 } // namespace openmsx
26 
27 #endif
This class manages the lifetime of a block of memory.
Definition: MemBuffer.hh:29
RamDSKDiskImage(size_t size=720 *1024)
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
size_t size(std::string_view utf8)