// /*************************************************************************** // The Disc Image Chef // ---------------------------------------------------------------------------- // // Filename : Structs.cs // Author(s) : Natalia Portillo // // Component : Disk image plugins. // // --[ Description ] ---------------------------------------------------------- // // Contains structures for XGS emulator 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-2019 Natalia Portillo // ****************************************************************************/ using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; namespace DiscImageChef.DiscImages { public partial class Apple2Mg { [SuppressMessage("ReSharper", "NotAccessedField.Local")] [StructLayout(LayoutKind.Sequential, Pack = 1)] struct A2ImgHeader { /// /// Offset 0x00, magic /// public uint Magic; /// /// Offset 0x04, disk image creator ID /// public uint Creator; /// /// Offset 0x08, header size, constant 0x0040 /// public ushort HeaderSize; /// /// Offset 0x0A, disk image version /// public ushort Version; /// /// Offset 0x0C, disk image format /// public SectorOrder ImageFormat; /// /// Offset 0x10, flags and volume number /// public uint Flags; /// /// Offset 0x14, blocks for ProDOS, 0 otherwise /// public uint Blocks; /// /// Offset 0x18, offset to data /// public uint DataOffset; /// /// Offset 0x1C, data size in bytes /// public uint DataSize; /// /// Offset 0x20, offset to optional comment /// public uint CommentOffset; /// /// Offset 0x24, length of optional comment /// public uint CommentSize; /// /// Offset 0x28, offset to creator specific chunk /// public uint CreatorSpecificOffset; /// /// Offset 0x2C, creator specific chunk size /// public uint CreatorSpecificSize; /// /// Offset 0x30, reserved, should be zero /// public uint Reserved1; /// /// Offset 0x34, reserved, should be zero /// public uint Reserved2; /// /// Offset 0x38, reserved, should be zero /// public uint Reserved3; /// /// Offset 0x3C, reserved, should be zero /// public uint Reserved4; } } }