1#ifndef DISKPARTITION_HH
2#define DISKPARTITION_HH
22 std::shared_ptr<SectorAccessibleDisk> owned =
nullptr);
25 size_t start,
size_t length);
28 void readSectorImpl (
size_t sector,
SectorBuffer& buf)
override;
29 void writeSectorImpl(
size_t sector,
const SectorBuffer& buf)
override;
30 [[nodiscard]]
bool isWriteProtectedImpl()
const override;
34 std::shared_ptr<SectorAccessibleDisk> owned;
DiskPartition(SectorAccessibleDisk &disk, unsigned partition, std::shared_ptr< SectorAccessibleDisk > owned=nullptr)
Return a partition (as a SectorBasedDisk) from another Disk.
Abstract class for disk images that only represent the logical sector information (so not the raw tra...
T length(const vecN< N, T > &x)
unsigned partition(SectorAccessibleDisk &disk, std::span< const unsigned > sizes, MSXBootSectorType bootType)
Write a partition table to the given disk and format each partition.
This file implemented 3 utility functions: