9 , file(
std::make_shared<
File>(fileName,
File::OpenMode::PRE_CACHE))
15 std::shared_ptr<File> file_)
17 , file(
std::move(file_))
22void DSKDiskImage::readSectorsImpl(
23 std::span<SectorBuffer> buffers,
size_t startSector)
29void DSKDiskImage::writeSectorImpl(
size_t sector,
const SectorBuffer& buf)
31 file->seek(sector *
sizeof(buf));
35bool DSKDiskImage::isWriteProtectedImpl()
const
37 return file->isReadOnly();
40Sha1Sum DSKDiskImage::getSha1SumImpl(FilePool& filePool)
45 return filePool.getSha1Sum(*file);
DSKDiskImage(const Filename &filename)
This class represents a filename.
virtual Sha1Sum getSha1SumImpl(FilePool &filePool)
Abstract class for disk images that only represent the logical sector information (so not the raw tra...
void setNbSectors(size_t num)
This file implemented 3 utility functions: