// /*************************************************************************** // Aaru Data Preservation Suite // ---------------------------------------------------------------------------- // // Filename : Structs.cs // Author(s) : Natalia Portillo // // Component : Disk image plugins. // // --[ Description ] ---------------------------------------------------------- // // Contains structures for QEMU Enhanced Disk images. // // --[ License ] -------------------------------------------------------------- // // This library is free software; you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as // published by the Free Software Foundation; either version 2.1 of the // License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, see . // // ---------------------------------------------------------------------------- // Copyright © 2011-2021 Natalia Portillo // ****************************************************************************/ using System.Runtime.InteropServices; namespace Aaru.DiscImages { public sealed partial class Qed { /// QED header, big-endian [StructLayout(LayoutKind.Sequential, Pack = 1)] struct QedHeader { /// /// /// public uint magic; /// Cluster size in bytes public uint cluster_size; /// L1 and L2 table size in cluster public uint table_size; /// Header size in clusters public uint header_size; /// Incompatible features public readonly ulong features; /// Compatible features public readonly ulong compat_features; /// Self-resetting features public readonly ulong autoclear_features; /// Offset to L1 table public ulong l1_table_offset; /// Image size public ulong image_size; /// Offset inside file to string containing backing file public readonly ulong backing_file_offset; /// Size of public readonly uint backing_file_size; } } }