wavelength 1.0.0
Loading...
Searching...
No Matches
Tools::BuildImage::UdfWriter Class Reference

Writer of the UDF 1.02 half of a UDF bridge DVD image, laid out as the discs Sony's DVD-ROM generator mastered. More...

#include <udfwriter.h>

Static Public Member Functions

static std::uint64_t directorySize (const std::vector< UdfNode > &nodes, std::size_t directory)
 Compute the bytes of a directory's file identifier descriptors.
static void write (const std::vector< UdfNode > &nodes, std::uint32_t partitionStart, std::uint32_t volumeSectors, Seconds recorded, std::map< std::uint32_t, Volume::Sector > &sectors)
 Write the UDF descriptors and directories.

Static Public Attributes

static constexpr std::uint32_t kPartitionHeaderSectors = 2
 Sectors of the partition before the first directory: the file set descriptor and a terminating descriptor.
static constexpr std::uint32_t kFirstFreeSector = 257
 First sector after the anchor, where the ISO9660 path tables may begin.

Detailed Description

Writer of the UDF 1.02 half of a UDF bridge DVD image, laid out as the discs Sony's DVD-ROM generator mastered.

The volume recognition sequence follows the ISO9660 descriptors at sector 18, the main and reserve volume descriptor sequences start at sectors 32 and 48, the integrity sequence at sector 64, and the anchor at sector 256 and in the last sector. The partition opens with the file set descriptor and a terminator, and the file data is the data the ISO9660 records give.

Member Function Documentation

◆ directorySize()

std::uint64_t Tools::BuildImage::UdfWriter::directorySize ( const std::vector< UdfNode > & nodes,
std::size_t directory )
static

Compute the bytes of a directory's file identifier descriptors.

Parameters
nodesEvery node, the root first.
directoryIndex of the directory.
Returns
The bytes.

◆ write()

void Tools::BuildImage::UdfWriter::write ( const std::vector< UdfNode > & nodes,
std::uint32_t partitionStart,
std::uint32_t volumeSectors,
Seconds recorded,
std::map< std::uint32_t, Volume::Sector > & sectors )
static

Write the UDF descriptors and directories.

Parameters
nodesEvery node, the root first, with its sectors placed.
partitionStartFirst sector of the partition.
volumeSectorsSectors of the volume. The last one is the anchor copy, and the partition ends before it.
recordedRecording time of the volume, in UTC.
sectorsDestination of the written sectors.

Member Data Documentation

◆ kPartitionHeaderSectors

std::uint32_t Tools::BuildImage::UdfWriter::kPartitionHeaderSectors = 2
staticconstexpr

Sectors of the partition before the first directory: the file set descriptor and a terminating descriptor.

◆ kFirstFreeSector

std::uint32_t Tools::BuildImage::UdfWriter::kFirstFreeSector = 257
staticconstexpr

First sector after the anchor, where the ISO9660 path tables may begin.


The documentation for this class was generated from the following file: