2025-09-26 10:57:15 -04:00
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
2025-09-26 13:06:18 -04:00
|
|
|
namespace SabreTools.Data.Models.VPK
|
2025-09-26 10:57:15 -04:00
|
|
|
{
|
|
|
|
|
/// <see href="https://developer.valvesoftware.com/wiki/VPK_(file_format)"/>
|
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
|
|
|
public sealed class ArchiveMD5SectionEntry
|
|
|
|
|
{
|
|
|
|
|
public uint ArchiveIndex;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Where to start reading bytes
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint StartingOffset;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// How many bytes to check
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint Count;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Expected checksum
|
|
|
|
|
/// </summary>
|
|
|
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
|
2026-01-27 12:03:01 -05:00
|
|
|
public byte[] MD5Checksum = new byte[16];
|
2025-09-26 10:57:15 -04:00
|
|
|
}
|
2025-10-30 20:44:16 -04:00
|
|
|
}
|