openMSX
Classes | Namespaces | Enumerations | Functions
DiskImageUtils.cc File Reference
#include "DiskImageUtils.hh"
#include "DiskPartition.hh"
#include "CommandException.hh"
#include "BootBlocks.hh"
#include "endian.hh"
#include "enumerate.hh"
#include "one_of.hh"
#include "random.hh"
#include "ranges.hh"
#include "strCat.hh"
#include "view.hh"
#include "xrange.hh"
#include <algorithm>
#include <bit>
#include <cassert>
#include <ctime>
Include dependency graph for DiskImageUtils.cc:

Go to the source code of this file.

Classes

struct  openmsx::DiskImageUtils::SetBootSectorResult
 
struct  openmsx::DiskImageUtils::CHS
 

Namespaces

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

Enumerations

enum class  openmsx::DiskImageUtils::PartitionTableType { openmsx::DiskImageUtils::SUNRISE_IDE , openmsx::DiskImageUtils::NEXTOR }
 

Functions

bool openmsx::DiskImageUtils::hasPartitionTable (const SectorAccessibleDisk &disk)
 Check whether the given disk is partitioned.
 
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.
 
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)