wavelength 1.0.0
Loading...
Searching...
No Matches
Tools::BuildImage::Udf Namespace Reference

The descriptor layouts of ECMA-167 and UDF that the UDF reader and writer share. More...

Classes

struct  EntryLayout
class  Volume
 The data sectors of an ISO9660 volume, from a disc image or built from a disc root. More...

Typedefs

using Seconds
 A UTC time with a resolution of one second.

Functions

std::uint64_t readLittle64 (std::span< const std::uint8_t > bytes, std::size_t offset)
void writeLittle64 (std::span< std::uint8_t > bytes, std::size_t offset, std::uint64_t value)
Seconds readTime (std::span< const std::uint8_t > bytes, std::size_t offset)
void writeTime (std::span< std::uint8_t > bytes, std::size_t offset, Seconds time)
std::uint16_t crc16 (std::span< const std::uint8_t > bytes)
std::uint8_t tagChecksum (std::span< const std::uint8_t > bytes)
std::uint16_t tagIdentifier (std::span< const std::uint8_t > bytes)
bool isTag (std::span< const std::uint8_t > bytes, std::uint16_t identifier, std::uint32_t location)
void seal (Volume::Sector &descriptor)
std::uint16_t readLittle16 (std::span< const std::uint8_t > bytes, std::size_t offset)
 Read a little-endian 16-bit value.
std::uint32_t readLittle32 (std::span< const std::uint8_t > bytes, std::size_t offset)
 Read a little-endian 32-bit value.
void writeLittle (std::span< std::uint8_t > bytes, std::size_t offset, std::uint32_t value, std::size_t width=4)
 Write a little-endian value.

Variables

constexpr std::uint16_t kTagAnchor = 2
constexpr std::uint16_t kTagPartition = 5
constexpr std::uint16_t kTagLogicalVolume = 6
constexpr std::uint16_t kTagTerminating = 8
constexpr std::uint16_t kTagIntegrity = 9
constexpr std::uint16_t kTagFileSet = 256
constexpr std::uint16_t kTagFileIdentifier = 257
constexpr std::uint16_t kTagFileEntry = 261
constexpr std::uint16_t kTagExtendedFileEntry = 266
constexpr std::size_t kTagLength = 16
constexpr std::size_t kTagChecksum = 4
constexpr std::size_t kTagCrc = 8
constexpr std::size_t kTagCrcLength = 10
constexpr std::size_t kTagLocation = 12
constexpr std::size_t kAnchorMain = 16
constexpr std::size_t kAnchorReserve = 24
constexpr std::size_t kPartitionStart = 188
constexpr std::size_t kPartitionLength = 192
constexpr std::size_t kLogicalVolumeFileSet = 252
constexpr std::size_t kLogicalVolumeIntegrity = 436
constexpr std::size_t kFileSetRoot = 404
constexpr std::size_t kIntegrityTime = 16
constexpr std::size_t kIntegrityPartitions = 72
constexpr std::size_t kIntegrityFreeSpace = 80
constexpr std::size_t kEntryFileType = 27
constexpr std::size_t kEntryFlags = 34
constexpr std::size_t kEntryInformationLength = 56
constexpr std::size_t kExtendedObjectSize = 64
constexpr std::uint8_t kFileTypeDirectory = 4
constexpr std::uint16_t kAllocationTypeMask = 7
constexpr std::uint16_t kAllocationShort = 0
constexpr std::uint16_t kAllocationLong = 1
constexpr std::uint16_t kAllocationEmbedded = 3
constexpr std::size_t kShortLength = 8
constexpr std::size_t kLongLength = 16
constexpr std::uint32_t kExtentLengthMask = 0x3FFFFFFF
constexpr std::size_t kIdentifierCharacteristics = 18
constexpr std::size_t kIdentifierNameLength = 19
constexpr std::size_t kIdentifierIcbBlock = 24
constexpr std::size_t kIdentifierUseLength = 36
constexpr std::size_t kIdentifierFixedLength = 38
constexpr std::uint8_t kCharacteristicParent = 0x08
constexpr EntryLayout kFileEntryLayout {64, 84, 96, 168, 176}
constexpr EntryLayout kExtendedEntryLayout {72, 92, 116, 208, 216}
constexpr std::size_t kTimeLength = 12
constexpr std::uint16_t kTimeTypeLocal = 0x1000
constexpr std::uint16_t kTimeZoneMask = 0xFFF
constexpr int kTimeZoneUnspecified = -2047
constexpr int kTimeZoneSignBit = 0x800

Detailed Description

The descriptor layouts of ECMA-167 and UDF that the UDF reader and writer share.

Typedef Documentation

◆ Seconds

A UTC time with a resolution of one second.

Function Documentation

◆ readLittle64()

std::uint64_t Tools::BuildImage::Udf::readLittle64 ( std::span< const std::uint8_t > bytes,
std::size_t offset )
inline

◆ writeLittle64()

void Tools::BuildImage::Udf::writeLittle64 ( std::span< std::uint8_t > bytes,
std::size_t offset,
std::uint64_t value )
inline

◆ readTime()

Seconds Tools::BuildImage::Udf::readTime ( std::span< const std::uint8_t > bytes,
std::size_t offset )
inline

◆ writeTime()

void Tools::BuildImage::Udf::writeTime ( std::span< std::uint8_t > bytes,
std::size_t offset,
Seconds time )
inline

◆ crc16()

std::uint16_t Tools::BuildImage::Udf::crc16 ( std::span< const std::uint8_t > bytes)
inline

◆ tagChecksum()

std::uint8_t Tools::BuildImage::Udf::tagChecksum ( std::span< const std::uint8_t > bytes)
inline

◆ tagIdentifier()

std::uint16_t Tools::BuildImage::Udf::tagIdentifier ( std::span< const std::uint8_t > bytes)
inline

◆ isTag()

bool Tools::BuildImage::Udf::isTag ( std::span< const std::uint8_t > bytes,
std::uint16_t identifier,
std::uint32_t location )
inline

◆ seal()

void Tools::BuildImage::Udf::seal ( Volume::Sector & descriptor)
inline

◆ readLittle16()

std::uint16_t Tools::Common::readLittle16 ( std::span< const std::uint8_t > bytes,
std::size_t offset )
inline

Read a little-endian 16-bit value.

Parameters
bytesBuffer to read.
offsetOffset of the value's first byte.
Returns
The value.

◆ readLittle32()

std::uint32_t Tools::Common::readLittle32 ( std::span< const std::uint8_t > bytes,
std::size_t offset )
inline

Read a little-endian 32-bit value.

Parameters
bytesBuffer to read.
offsetOffset of the value's first byte.
Returns
The value.

◆ writeLittle()

void Tools::Common::writeLittle ( std::span< std::uint8_t > bytes,
std::size_t offset,
std::uint32_t value,
std::size_t width = 4 )
inline

Write a little-endian value.

Parameters
bytesBuffer to write.
offsetOffset of the value's first byte.
valueValue to write.
widthWidth of the value in bytes.

Variable Documentation

◆ kTagAnchor

std::uint16_t Tools::BuildImage::Udf::kTagAnchor = 2
constexpr

◆ kTagPartition

std::uint16_t Tools::BuildImage::Udf::kTagPartition = 5
constexpr

◆ kTagLogicalVolume

std::uint16_t Tools::BuildImage::Udf::kTagLogicalVolume = 6
constexpr

◆ kTagTerminating

std::uint16_t Tools::BuildImage::Udf::kTagTerminating = 8
constexpr

◆ kTagIntegrity

std::uint16_t Tools::BuildImage::Udf::kTagIntegrity = 9
constexpr

◆ kTagFileSet

std::uint16_t Tools::BuildImage::Udf::kTagFileSet = 256
constexpr

◆ kTagFileIdentifier

std::uint16_t Tools::BuildImage::Udf::kTagFileIdentifier = 257
constexpr

◆ kTagFileEntry

std::uint16_t Tools::BuildImage::Udf::kTagFileEntry = 261
constexpr

◆ kTagExtendedFileEntry

std::uint16_t Tools::BuildImage::Udf::kTagExtendedFileEntry = 266
constexpr

◆ kTagLength

std::size_t Tools::BuildImage::Udf::kTagLength = 16
constexpr

◆ kTagChecksum

std::size_t Tools::BuildImage::Udf::kTagChecksum = 4
constexpr

◆ kTagCrc

std::size_t Tools::BuildImage::Udf::kTagCrc = 8
constexpr

◆ kTagCrcLength

std::size_t Tools::BuildImage::Udf::kTagCrcLength = 10
constexpr

◆ kTagLocation

std::size_t Tools::BuildImage::Udf::kTagLocation = 12
constexpr

◆ kAnchorMain

std::size_t Tools::BuildImage::Udf::kAnchorMain = 16
constexpr

◆ kAnchorReserve

std::size_t Tools::BuildImage::Udf::kAnchorReserve = 24
constexpr

◆ kPartitionStart

std::size_t Tools::BuildImage::Udf::kPartitionStart = 188
constexpr

◆ kPartitionLength

std::size_t Tools::BuildImage::Udf::kPartitionLength = 192
constexpr

◆ kLogicalVolumeFileSet

std::size_t Tools::BuildImage::Udf::kLogicalVolumeFileSet = 252
constexpr

◆ kLogicalVolumeIntegrity

std::size_t Tools::BuildImage::Udf::kLogicalVolumeIntegrity = 436
constexpr

◆ kFileSetRoot

std::size_t Tools::BuildImage::Udf::kFileSetRoot = 404
constexpr

◆ kIntegrityTime

std::size_t Tools::BuildImage::Udf::kIntegrityTime = 16
constexpr

◆ kIntegrityPartitions

std::size_t Tools::BuildImage::Udf::kIntegrityPartitions = 72
constexpr

◆ kIntegrityFreeSpace

std::size_t Tools::BuildImage::Udf::kIntegrityFreeSpace = 80
constexpr

◆ kEntryFileType

std::size_t Tools::BuildImage::Udf::kEntryFileType = 27
constexpr

◆ kEntryFlags

std::size_t Tools::BuildImage::Udf::kEntryFlags = 34
constexpr

◆ kEntryInformationLength

std::size_t Tools::BuildImage::Udf::kEntryInformationLength = 56
constexpr

◆ kExtendedObjectSize

std::size_t Tools::BuildImage::Udf::kExtendedObjectSize = 64
constexpr

◆ kFileTypeDirectory

std::uint8_t Tools::BuildImage::Udf::kFileTypeDirectory = 4
constexpr

◆ kAllocationTypeMask

std::uint16_t Tools::BuildImage::Udf::kAllocationTypeMask = 7
constexpr

◆ kAllocationShort

std::uint16_t Tools::BuildImage::Udf::kAllocationShort = 0
constexpr

◆ kAllocationLong

std::uint16_t Tools::BuildImage::Udf::kAllocationLong = 1
constexpr

◆ kAllocationEmbedded

std::uint16_t Tools::BuildImage::Udf::kAllocationEmbedded = 3
constexpr

◆ kShortLength

std::size_t Tools::BuildImage::Udf::kShortLength = 8
constexpr

◆ kLongLength

std::size_t Tools::BuildImage::Udf::kLongLength = 16
constexpr

◆ kExtentLengthMask

std::uint32_t Tools::BuildImage::Udf::kExtentLengthMask = 0x3FFFFFFF
constexpr

◆ kIdentifierCharacteristics

std::size_t Tools::BuildImage::Udf::kIdentifierCharacteristics = 18
constexpr

◆ kIdentifierNameLength

std::size_t Tools::BuildImage::Udf::kIdentifierNameLength = 19
constexpr

◆ kIdentifierIcbBlock

std::size_t Tools::BuildImage::Udf::kIdentifierIcbBlock = 24
constexpr

◆ kIdentifierUseLength

std::size_t Tools::BuildImage::Udf::kIdentifierUseLength = 36
constexpr

◆ kIdentifierFixedLength

std::size_t Tools::BuildImage::Udf::kIdentifierFixedLength = 38
constexpr

◆ kCharacteristicParent

std::uint8_t Tools::BuildImage::Udf::kCharacteristicParent = 0x08
constexpr

◆ kFileEntryLayout

EntryLayout Tools::BuildImage::Udf::kFileEntryLayout {64, 84, 96, 168, 176}
constexpr

◆ kExtendedEntryLayout

EntryLayout Tools::BuildImage::Udf::kExtendedEntryLayout {72, 92, 116, 208, 216}
constexpr

◆ kTimeLength

std::size_t Tools::BuildImage::Udf::kTimeLength = 12
constexpr

◆ kTimeTypeLocal

std::uint16_t Tools::BuildImage::Udf::kTimeTypeLocal = 0x1000
constexpr

◆ kTimeZoneMask

std::uint16_t Tools::BuildImage::Udf::kTimeZoneMask = 0xFFF
constexpr

◆ kTimeZoneUnspecified

int Tools::BuildImage::Udf::kTimeZoneUnspecified = -2047
constexpr

◆ kTimeZoneSignBit

int Tools::BuildImage::Udf::kTimeZoneSignBit = 0x800
constexpr