|
wavelength 1.0.0
|
The UDF bridge file system of a DVD image, beside its ISO9660 tree. More...
#include <udftree.h>
Classes | |
| struct | File |
| A file of the UDF tree. More... | |
Public Member Functions | |
| std::expected< File, Error > | find (std::uint32_t lba) const |
| Locate the file whose data starts at a sector. | |
| std::uint32_t | partitionStart () const |
| Report the first sector of the partition. | |
| const std::vector< std::uint32_t > & | partitionDescriptors () const |
| List the sectors of the partition descriptors in both volume descriptor sequences. | |
| std::optional< std::uint32_t > | integrityDescriptor () const |
| Report the sector of the logical volume integrity descriptor. | |
Static Public Member Functions | |
| static std::expected< std::optional< UdfTree >, Error > | open (Volume &volume) |
| Read the UDF structures of a volume. | |
| static void | setFile (Volume::Sector &entry, std::uint32_t size, std::uint32_t block, Seconds modified) |
| Give a file entry a new single extent and date. | |
| static void | raiseModified (Volume::Sector &entry, Seconds time) |
| Raise the modification time of a file entry. | |
| static void | raiseIntegrity (Volume::Sector &descriptor, Seconds time, std::uint32_t partitionLength) |
| Raise the recording time of a logical volume integrity descriptor and set its partition size. | |
| static std::uint32_t | partitionLength (const Volume::Sector &descriptor) |
| Read the length of a partition descriptor. | |
| static void | setPartitionLength (Volume::Sector &descriptor, std::uint32_t length) |
| Set the length of a partition descriptor. | |
| static void | relocate (Volume::Sector &descriptor, std::uint32_t location) |
| Move a descriptor to another sector by rewriting its tag location. | |
Static Public Attributes | |
| static constexpr std::uint32_t | kAnchorSector = 256 |
| Sector of the first anchor volume descriptor pointer. | |
The UDF bridge file system of a DVD image, beside its ISO9660 tree.
Reading follows the anchor volume descriptor pointer at sector 256 to the partition and the file set, then walks every directory from the root. Each file is found by the first sector of its data, which the ISO9660 directory record of the same file also gives. The static editors change one descriptor sector and recompute its descriptor CRC and tag checksum.
|
static |
Read the UDF structures of a volume.
| volume | Volume to read. |
Locate the file whose data starts at a sector.
| lba | First data sector. |
|
nodiscard |
Report the first sector of the partition.
|
nodiscard |
List the sectors of the partition descriptors in both volume descriptor sequences.
|
nodiscard |
Report the sector of the logical volume integrity descriptor.
|
static |
Give a file entry a new single extent and date.
The information length, the logical blocks recorded, the extent of the allocation descriptor, the modification time, and the attribute time change.
| entry | Sector of a file entry or an extended file entry. |
| size | Length of the data in bytes. |
| block | Logical block of the data within the partition. |
| modified | Date of the data, in UTC. |
|
static |
Raise the modification time of a file entry.
A later time stays unchanged.
| entry | Sector of a file entry or an extended file entry. |
| time | Earliest modification time, in UTC. |
|
static |
Raise the recording time of a logical volume integrity descriptor and set its partition size.
A later recording time stays unchanged.
| descriptor | Sector of the integrity descriptor. |
| time | Earliest recording time, in UTC. |
| partitionLength | Length of the partition in blocks. |
|
static |
Read the length of a partition descriptor.
| descriptor | Sector of the partition descriptor. |
|
static |
Set the length of a partition descriptor.
| descriptor | Sector of the partition descriptor. |
| length | Length of the partition in blocks. |
|
static |
Move a descriptor to another sector by rewriting its tag location.
| descriptor | Sector of the descriptor. |
| location | New tag location. |
|
staticconstexpr |
Sector of the first anchor volume descriptor pointer.