|
resonance 1.0.1
|
Writer of a FreQuency disc image with the built executable and module in place. More...
Classes | |
| class | DirectoryVolume |
| An ISO9660 volume built from the files of a disc root directory. More... | |
| class | GitHubClient |
| Client of the GitHub Actions API for the build artifacts of one repository. More... | |
| struct | Replacement |
| A file of the original disc and the payload that replaces it. More... | |
| class | ImageBuilder |
| Writer of a raw MODE2/2352 image of a volume with replaced files. More... | |
| class | SectorEncoder |
| Encoder of CD-ROM XA Mode 2 Form 1 sectors with table-driven EDC and ECC. More... | |
| class | SourceImage |
| Random access to the data track of a cue, raw, or ISO disc image. More... | |
| struct | DirectoryExtent |
| The extent of a directory in the ISO9660 tree. More... | |
| struct | LocatedFile |
| A file found in the ISO9660 tree. More... | |
| class | Volume |
| The data sectors of an ISO9660 volume, from a disc image or built from a disc root. More... | |
| class | ZipArchive |
| Reader of the stored and deflated members of a zip archive in memory. More... | |
Typedefs | |
| using | Seconds = std::chrono::sys_seconds |
| A UTC time with a resolution of one second. | |
Functions | |
| 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. | |
| void | writeBig (std::span< std::uint8_t > bytes, std::size_t offset, std::uint32_t value, std::size_t width=4) |
| Write a big-endian value. | |
| void | writeBoth (std::span< std::uint8_t > bytes, std::size_t offset, std::uint32_t value, std::size_t width=4) |
| Write a value in the ISO9660 both-endian form, little-endian followed by big-endian. | |
| std::unexpected< Error > | discImageError (std::string message) |
| Report that the disc image cannot be read or rewritten. | |
| std::unexpected< Error > | artifactError (std::string message) |
| Report that build artifacts cannot be fetched from GitHub. | |
| std::unexpected< Error > | ioError (std::string message) |
| Report that a file cannot be read or written. | |
| void | writeRecordDate (std::span< std::uint8_t > bytes, std::size_t offset, Seconds time) |
| Write the seven-byte date of a directory record, in UTC. | |
| Seconds | readRecordDate (std::span< const std::uint8_t > bytes, std::size_t offset) |
| Read the seven-byte date of a directory record. | |
| std::string | volumeDate (Seconds time) |
| Format the 16 digits of a volume descriptor date, in UTC with hundredths of zero. | |
| std::optional< Seconds > | readVolumeDate (std::span< const std::uint8_t > bytes, std::size_t offset) |
| Read the 17-byte date of a volume descriptor. | |
| std::expected< Seconds, Error > | fileModificationTime (const std::filesystem::path &path) |
| Read the modification time of a file or directory. | |
Variables | |
| constexpr int | kIsoZoneMinutes = 15 |
| Minutes in one step of an ISO9660 zone offset. | |
Writer of a FreQuency disc image with the built executable and module in place.
| using Tools::BuildImage::Seconds = std::chrono::sys_seconds |
A UTC time with a resolution of one second.
|
inline |
Read a little-endian 16-bit value.
| bytes | Buffer to read. |
| offset | Offset of the value's first byte. |
|
inline |
Read a little-endian 32-bit value.
| bytes | Buffer to read. |
| offset | Offset of the value's first byte. |
|
inline |
Write a little-endian value.
| bytes | Buffer to write. |
| offset | Offset of the value's first byte. |
| value | Value to write. |
| width | Width of the value in bytes. |
|
inline |
Write a big-endian value.
| bytes | Buffer to write. |
| offset | Offset of the value's first byte. |
| value | Value to write. |
| width | Width of the value in bytes. |
|
inline |
Write a value in the ISO9660 both-endian form, little-endian followed by big-endian.
| bytes | Buffer to write. |
| offset | Offset of the little-endian copy. |
| value | Value to write. |
| width | Width of one copy in bytes. |
|
inline |
Report that the disc image cannot be read or rewritten.
| message | Sentence describing the failure. |
|
inline |
Report that build artifacts cannot be fetched from GitHub.
| message | Sentence describing the failure. |
|
inline |
Report that a file cannot be read or written.
| message | Sentence describing the failure. |
|
inline |
Write the seven-byte date of a directory record, in UTC.
| bytes | Buffer holding the record. |
| offset | Offset of the date's first byte. |
| time | Time to write. |
|
inline |
Read the seven-byte date of a directory record.
| bytes | Buffer holding the record. |
| offset | Offset of the date's first byte. |
|
inline |
Format the 16 digits of a volume descriptor date, in UTC with hundredths of zero.
| time | Time to format. |
|
inline |
Read the 17-byte date of a volume descriptor.
| bytes | Buffer holding the descriptor. |
| offset | Offset of the date's first digit. |
|
inline |
Read the modification time of a file or directory.
| path | File or directory to examine. |
|
constexpr |
Minutes in one step of an ISO9660 zone offset.