mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-13 05:35:24 +00:00
39 lines
1.0 KiB
C#
39 lines
1.0 KiB
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace BinaryObjectScanner.Models.MoPaQ
|
|
{
|
|
/// <summary>
|
|
/// This structure contains size of the patch, flags and also MD5 of the patch.
|
|
/// </summary>
|
|
/// <see href="http://zezula.net/en/mpq/mpqformat.html"/>
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public sealed class PatchInfo
|
|
{
|
|
/// <summary>
|
|
/// Length of patch info header, in bytes
|
|
/// </summary>
|
|
public uint Length;
|
|
|
|
/// <summary>
|
|
/// Flags. 0x80000000 = MD5 (?)
|
|
/// </summary>
|
|
public uint Flags;
|
|
|
|
/// <summary>
|
|
/// Uncompressed size of the patch file
|
|
/// </summary>
|
|
public uint DataSize;
|
|
|
|
/// <summary>
|
|
/// MD5 of the entire patch file after decompression
|
|
/// </summary>
|
|
/// <remarks>0x10 bytes</remarks>
|
|
public byte[] MD5;
|
|
|
|
/// <summary>
|
|
/// The sector offset table (variable length)
|
|
/// </summary>
|
|
public uint[] SectorOffsetTable;
|
|
}
|
|
}
|