mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-05 22:01:33 +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.
36 lines
921 B
C#
36 lines
921 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.Data.Models.InstallShieldCabinet
|
|
{
|
|
/// <see href="https://github.com/twogood/unshield/blob/main/lib/cabfile.h"/>
|
|
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
|
|
public sealed class CommonHeader
|
|
{
|
|
/// <summary>
|
|
/// "ISc("
|
|
/// </summary>
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 4)]
|
|
public string Signature = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Encoded version
|
|
/// </summary>
|
|
public uint Version;
|
|
|
|
/// <summary>
|
|
/// Volume information
|
|
/// </summary>
|
|
public uint VolumeInfo;
|
|
|
|
/// <summary>
|
|
/// Offset to cabinet descriptor
|
|
/// </summary>
|
|
public uint DescriptorOffset;
|
|
|
|
/// <summary>
|
|
/// Cabinet descriptor size
|
|
/// </summary>
|
|
public uint DescriptorSize;
|
|
}
|
|
}
|