mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-23 06:39:41 +00:00
This change looks dramatic, but it's just separating out the already-split namespaces into separate top-level folders. In theory, every single one could be built into their own Nuget package. `SabreTools.Serialization` still builds the normal Nuget package that is used by all other projects and includes all namespaces.
28 lines
716 B
C#
28 lines
716 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.Data.Models.VPK
|
|
{
|
|
/// <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)]
|
|
public byte[] MD5Checksum = new byte[16];
|
|
}
|
|
}
|