Files
SabreTools.Models/GCF/FragmentationMapHeader.cs

29 lines
782 B
C#
Raw Permalink 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
{
/// <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 FragmentationMapHeader
{
/// <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>
/// The index of the first unused fragmentation map entry.
/// </summary>
2024-04-23 13:30:43 -04:00
public uint FirstUnusedEntry;
2023-09-04 00:11:04 -04:00
/// <summary>
/// The block entry terminator; 0 = 0x0000ffff or 1 = 0xffffffff.
/// </summary>
2024-04-23 13:30:43 -04:00
public uint Terminator;
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
}
}