mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-14 05:36:07 +00:00
75 lines
1.8 KiB
C#
75 lines
1.8 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace BinaryObjectScanner.Models.InstallShieldCabinet
|
|
{
|
|
/// <see href="https://github.com/twogood/unshield/blob/main/lib/cabfile.h"/>
|
|
/// <see href="https://github.com/twogood/unshield/blob/main/lib/internal.h"/>
|
|
public sealed class Cabinet
|
|
{
|
|
#region Headers
|
|
|
|
/// <summary>
|
|
/// Common header
|
|
/// </summary>
|
|
public CommonHeader CommonHeader { get; set; }
|
|
|
|
/// <summary>
|
|
/// Volume header
|
|
/// </summary>
|
|
public VolumeHeader VolumeHeader { get; set; }
|
|
|
|
/// <summary>
|
|
/// Descriptor
|
|
/// </summary>
|
|
public Descriptor Descriptor { get; set; }
|
|
|
|
#endregion
|
|
|
|
#region File Descriptors
|
|
|
|
/// <summary>
|
|
/// Offsets to all file descriptors
|
|
/// </summary>
|
|
public uint[] FileDescriptorOffsets { get; set; }
|
|
|
|
/// <summary>
|
|
/// Directory names
|
|
/// </summary>
|
|
public string[] DirectoryNames { get; set; }
|
|
|
|
/// <summary>
|
|
/// Standard file descriptors
|
|
/// </summary>
|
|
public FileDescriptor[] FileDescriptors { get; set; }
|
|
|
|
#endregion
|
|
|
|
#region File Groups
|
|
|
|
/// <summary>
|
|
/// File group offset to offset list mapping
|
|
/// </summary>
|
|
public Dictionary<long, OffsetList> FileGroupOffsets { get; set; }
|
|
|
|
/// <summary>
|
|
/// File groups
|
|
/// </summary>
|
|
public FileGroup[] FileGroups { get; set; }
|
|
|
|
#endregion
|
|
|
|
#region Components
|
|
|
|
/// <summary>
|
|
/// Component offset to offset list mapping
|
|
/// </summary>
|
|
public Dictionary<long, OffsetList> ComponentOffsets { get; set; }
|
|
|
|
/// <summary>
|
|
/// Components
|
|
/// </summary>
|
|
public Component[] Components { get; set; }
|
|
|
|
#endregion
|
|
}
|
|
} |