From c30821a5962912ce75fa374c8b56f22fcf016021 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sun, 12 Oct 2025 16:05:19 +0100 Subject: [PATCH] [AaruFormat] Add BlockType. --- Aaru.Images/AaruFormat/Enums.cs | 43 +++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/Aaru.Images/AaruFormat/Enums.cs b/Aaru.Images/AaruFormat/Enums.cs index b4dbfedd6..a58100126 100644 --- a/Aaru.Images/AaruFormat/Enums.cs +++ b/Aaru.Images/AaruFormat/Enums.cs @@ -2,6 +2,49 @@ namespace Aaru.Images; public sealed partial class AaruFormat { +#region Nested type: BlockType + + /// List of known blocks types (libaaruformat is the reference, not this) + enum BlockType : uint + { + /// Block containing data + DataBlock = 0x4B4C4244, + /// Block containing a deduplication table + DeDuplicationTable = 0x2A544444, + /// Block containing the index + Index = 0x58444E49, + /// Block containing the index + Index2 = 0x32584449, + /// Block containing logical geometry + GeometryBlock = 0x4D4F4547, + /// Block containing metadata + MetadataBlock = 0x4154454D, + /// Block containing optical disc tracks + TracksBlock = 0x534B5254, + /// Block containing CICM XML metadata + CicmBlock = 0x4D434943, + /// Block containing contents checksums + ChecksumBlock = 0x4D534B43, + /// Block containing data position measurements + DataPositionMeasurementBlock = 0x2A4D5044, + /// Block containing a snapshot index + SnapshotBlock = 0x50414E53, + /// Block containing how to locate the parent image + ParentBlock = 0x544E5250, + /// Block containing an array of hardware used to create the image + DumpHardwareBlock = 0x2A504D44, + /// Block containing list of files for a tape image + TapeFileBlock = 0x454C4654, + /// Block containing list of partitions for a tape image + TapePartitionBlock = 0x54425054, + /// Block containing list of indexes for Compact Disc tracks + CompactDiscIndexesBlock = 0x58494443, + /// Block containing JSON version of Aaru Metadata + AaruMetadataJsonBlock = 0x444D534A + } + +#endregion + #region Nested type: SectorStatus enum SectorStatus : byte