Classes | Namespaces | Enumerations | Functions
DiskImageUtils.hh File Reference
#include "AlignedBuffer.hh"
#include "endian.hh"
#include "ranges.hh"
#include "stl.hh"
#include <array>
#include <span>
#include <string>
Include dependency graph for DiskImageUtils.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  openmsx::MSXBootSector
struct  openmsx::MSXDirEntry
struct  openmsx::MSXDirEntry::AttribValue
struct  openmsx::Partition
struct  openmsx::PartitionTableSunrise
struct  openmsx::PartitionTableNextor
union  openmsx::SectorBuffer
struct  openmsx::DiskImageUtils::FatTimeDate


namespace  openmsx
 This file implemented 3 utility functions:
namespace  openmsx::DiskImageUtils


enum class  openmsx::MSXBootSectorType : int { openmsx::DOS1 = 0 , openmsx::DOS2 = 1 , openmsx::NEXTOR = 2 }


Partitionopenmsx::DiskImageUtils::getPartition (const SectorAccessibleDisk &disk, unsigned partition, SectorBuffer &buf)
 Gets the requested partition.
void openmsx::DiskImageUtils::checkSupportedPartition (const SectorAccessibleDisk &disk, unsigned partition)
 Check whether partition is of type FAT12 or FAT16.
bool openmsx::DiskImageUtils::hasPartitionTable (const SectorAccessibleDisk &disk)
 Check whether the given disk is partitioned.
void openmsx::DiskImageUtils::format (SectorAccessibleDisk &disk, MSXBootSectorType bootType)
 Format the given disk (= a single partition).
void openmsx::DiskImageUtils::format (SectorAccessibleDisk &disk, MSXBootSectorType bootType, size_t nbSectors)
unsigned openmsx::DiskImageUtils::partition (SectorAccessibleDisk &disk, std::span< const unsigned > sizes, MSXBootSectorType bootType)
 Write a partition table to the given disk and format each partition.
FatTimeDate openmsx::DiskImageUtils::toTimeDate (time_t totalSeconds)
time_t openmsx::DiskImageUtils::fromTimeDate (FatTimeDate timeDate)
std::string openmsx::DiskImageUtils::formatAttrib (MSXDirEntry::AttribValue attrib)