openMSX
EmptyDiskPatch.cc
Go to the documentation of this file.
1#include "EmptyDiskPatch.hh"
3#include <cassert>
4
5namespace openmsx {
6
11
12void EmptyDiskPatch::copyBlock(size_t src, std::span<uint8_t> dst) const
13{
14 assert((dst.size() % SectorAccessibleDisk::SECTOR_SIZE) == 0);
15 assert((src % SectorAccessibleDisk::SECTOR_SIZE) == 0);
16 disk.readSectorsImpl(std::span{aligned_cast<SectorBuffer*>(dst.data()),
19}
20
25
26std::vector<Filename> EmptyDiskPatch::getFilenames() const
27{
28 return {};
29}
30
31} // namespace openmsx
void copyBlock(size_t src, std::span< uint8_t > dst) const override
std::vector< Filename > getFilenames() const override
EmptyDiskPatch(SectorAccessibleDisk &disk)
size_t getSize() const override
static constexpr size_t SECTOR_SIZE
virtual void readSectorsImpl(std::span< SectorBuffer > buffers, size_t startSector)
This file implemented 3 utility functions:
Definition Autofire.cc:11