openMSX
fdc
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
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
21
private
:
22
MemBuffer<SectorBuffer>
data;
23
};
24
25
}
// namespace openmsx
26
27
#endif
MemBuffer.hh
SectorBasedDisk.hh
openmsx::MemBuffer
This class manages the lifetime of a block of memory.
Definition
MemBuffer.hh:32
openmsx::RamDSKDiskImage
Definition
RamDSKDiskImage.hh:10
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:11
openmsx::SectorBuffer
Definition
DiskImageUtils.hh:139
Generated on Sat Dec 21 2024 14:13:51 for openMSX by
1.9.8