using System.Runtime.InteropServices;
namespace SabreTools.Data.Models.CHD
{
///
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public class HeaderV2 : Header
{
///
/// Flags
///
[MarshalAs(UnmanagedType.U4)]
public Flags Flags;
///
/// Compression type
///
[MarshalAs(UnmanagedType.U4)]
public CompressionType Compression;
///
/// Seclen-byte sectors per hunk
///
public uint HunkSize;
///
/// Total # of hunks represented
///
public uint TotalHunks;
///
/// Number of cylinders on hard disk
///
public uint Cylinders;
///
/// Number of heads on hard disk
///
public uint Heads;
///
/// Number of sectors on hard disk
///
public uint Sectors;
///
/// MD5 checksum of raw data
///
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
public byte[] MD5 = new byte[16];
///
/// MD5 checksum of parent file
///
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
public byte[] ParentMD5 = new byte[16];
///
/// Number of bytes per sector
///
public uint BytesPerSector;
}
}