openMSX
EmptyDiskPatch.cc
Go to the documentation of this file.
1 #include "EmptyDiskPatch.hh"
3 #include <cassert>
4 
5 namespace openmsx {
6 
8  : disk(disk_)
9 {
10 }
11 
12 void EmptyDiskPatch::copyBlock(size_t src, byte* dst, size_t num) const
13 {
14  (void)num;
15  assert(num == SectorAccessibleDisk::SECTOR_SIZE);
16  assert((src % SectorAccessibleDisk::SECTOR_SIZE) == 0);
17  auto& buf = *aligned_cast<SectorBuffer*>(dst);
19 }
20 
22 {
24 }
25 
26 std::vector<Filename> EmptyDiskPatch::getFilenames() const
27 {
28  // return {};
29  return std::vector<Filename>();
30 }
31 
32 } // namespace openmsx
openmsx::SectorAccessibleDisk
Definition: SectorAccessibleDisk.hh:16
openmsx::SectorAccessibleDisk::SECTOR_SIZE
static constexpr size_t SECTOR_SIZE
Definition: SectorAccessibleDisk.hh:18
SectorAccessibleDisk.hh
openmsx::SectorAccessibleDisk::getNbSectors
size_t getNbSectors() const
Definition: SectorAccessibleDisk.cc:52
openmsx::SectorAccessibleDisk::readSectorImpl
virtual void readSectorImpl(size_t sector, SectorBuffer &buf)=0
openmsx::EmptyDiskPatch::copyBlock
void copyBlock(size_t src, byte *dst, size_t num) const override
Definition: EmptyDiskPatch.cc:12
openmsx::EmptyDiskPatch::getFilenames
std::vector< Filename > getFilenames() const override
Definition: EmptyDiskPatch.cc:26
EmptyDiskPatch.hh
openmsx
This file implemented 3 utility functions:
Definition: Autofire.cc:5
openmsx::EmptyDiskPatch::EmptyDiskPatch
EmptyDiskPatch(SectorAccessibleDisk &disk)
Definition: EmptyDiskPatch.cc:7
openmsx::EmptyDiskPatch::getSize
size_t getSize() const override
Definition: EmptyDiskPatch.cc:21