Files
SabreTools.Models/GCF/BlockEntryMapHeader.cs

37 lines
915 B
C#
Raw Normal View History

2024-04-23 13:30:43 -04:00
using System.Runtime.InteropServices;
2023-09-04 00:12:49 -04:00
namespace SabreTools.Models.GCF
2023-09-04 00:11:04 -04:00
{
/// <remarks>
/// Part of version 5 but not version 6.
/// </remarks>
/// <see href="https://github.com/RavuAlHemio/hllib/blob/master/HLLib/GCFFile.h"/>
2024-04-23 13:30:43 -04:00
[StructLayout(LayoutKind.Sequential)]
2023-09-04 00:11:04 -04:00
public sealed class BlockEntryMapHeader
{
/// <summary>
/// Number of data blocks.
/// </summary>
2024-04-23 13:30:43 -04:00
public uint BlockCount;
2023-09-04 00:11:04 -04:00
/// <summary>
/// Index of the first block entry.
/// </summary>
2024-04-23 13:30:43 -04:00
public uint FirstBlockEntryIndex;
2023-09-04 00:11:04 -04:00
/// <summary>
/// Index of the last block entry.
/// </summary>
2024-04-23 13:30:43 -04:00
public uint LastBlockEntryIndex;
2023-09-04 00:11:04 -04:00
/// <summary>
/// Reserved
/// </summary>
2024-04-23 13:30:43 -04:00
public uint Dummy0;
2023-09-04 00:11:04 -04:00
/// <summary>
/// Header checksum.
/// </summary>
2024-04-23 13:30:43 -04:00
public uint Checksum;
2023-09-04 00:11:04 -04:00
}
}