14 data = std::move(extractor).extractData();
18void XSADiskImage::readSectorsImpl(
19 std::span<SectorBuffer> buffers,
size_t startSector)
21 ranges::copy(std::span{&data[startSector], buffers.size()}, buffers);
24void XSADiskImage::writeSectorImpl(
size_t ,
const SectorBuffer& )
26 throw WriteProtectedException(
"Write protected");
29bool XSADiskImage::isWriteProtectedImpl()
const
std::span< const uint8_t > mmap()
Map file in memory.
This class represents a filename.
Abstract class for disk images that only represent the logical sector information (so not the raw tra...
void setNbSectors(size_t num)
XSADiskImage(const Filename &filename, File &file)
This file implemented 3 utility functions:
constexpr auto copy(InputRange &&range, OutputIter out)