Files
Aaru/Aaru.Images/QED/Structs.cs

72 lines
2.8 KiB
C#
Raw Normal View History

// /***************************************************************************
2020-02-27 12:31:25 +00:00
// Aaru Data Preservation Suite
// ----------------------------------------------------------------------------
//
// Filename : Structs.cs
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// Component : Disk image plugins.
//
// --[ Description ] ----------------------------------------------------------
//
2018-12-31 13:17:27 +00:00
// 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 <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
2024-05-01 04:17:32 +01:00
// Copyright © 2011-2024 Natalia Portillo
// ****************************************************************************/
2018-12-31 13:17:27 +00:00
2022-03-07 07:36:44 +00:00
using System.Runtime.InteropServices;
namespace Aaru.Images;
2022-03-06 13:29:38 +00:00
public sealed partial class Qed
{
2023-10-03 23:34:59 +01:00
#region Nested type: QedHeader
2022-03-06 13:29:38 +00:00
/// <summary>QED header, big-endian</summary>
[StructLayout(LayoutKind.Sequential, Pack = 1)]
struct QedHeader
{
2022-03-06 13:29:38 +00:00
/// <summary>
/// <see cref="Qed.QED_MAGIC" />
/// </summary>
public uint magic;
/// <summary>Cluster size in bytes</summary>
public uint cluster_size;
/// <summary>L1 and L2 table size in cluster</summary>
public uint table_size;
/// <summary>Header size in clusters</summary>
public uint header_size;
/// <summary>Incompatible features</summary>
public readonly ulong features;
/// <summary>Compatible features</summary>
public readonly ulong compat_features;
/// <summary>Self-resetting features</summary>
public readonly ulong autoclear_features;
/// <summary>Offset to L1 table</summary>
public ulong l1_table_offset;
/// <summary>Image size</summary>
public ulong image_size;
/// <summary>Offset inside file to string containing backing file</summary>
public readonly ulong backing_file_offset;
/// <summary>Size of <see cref="backing_file_offset" /></summary>
public readonly uint backing_file_size;
}
2023-10-03 23:34:59 +01:00
#endregion
}