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 readSectorImpl (size_t sector, SectorBuffer& buf) override;
17  void writeSectorImpl(size_t sector, const SectorBuffer& buf) override;
18  bool isWriteProtectedImpl() const override;
19 
21 };
22 
23 } // namespace openmsx
24 
25 #endif
openmsx::SectorBuffer
Definition: DiskImageUtils.hh:90
utf8::unchecked::size
size_t size(std::string_view utf8)
Definition: utf8_unchecked.hh:227
SectorBasedDisk.hh
openmsx::RamDSKDiskImage
Definition: RamDSKDiskImage.hh:10
openmsx::MemBuffer
This class manages the lifetime of a block of memory.
Definition: MemBuffer.hh:29
MemBuffer.hh
openmsx::RamDSKDiskImage::RamDSKDiskImage
RamDSKDiskImage(size_t size=720 *1024)
Definition: RamDSKDiskImage.cc:7
openmsx::SectorBasedDisk
Abstract class for disk images that only represent the logical sector information (so not the raw tra...
Definition: SectorBasedDisk.hh:14
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5