Files
SabreTools.Models/InstallShieldCabinet/FileDescriptor.cs

66 lines
1.6 KiB
C#
Raw Permalink Normal View History

2023-09-04 00:12:49 -04:00
namespace SabreTools.Models.InstallShieldCabinet
2023-09-04 00:11:04 -04:00
{
/// <see href="https://github.com/twogood/unshield/blob/main/lib/cabfile.h"/>
public sealed class FileDescriptor
{
/// <summary>
/// Offset to the file descriptor name
/// </summary>
2023-09-10 21:24:10 -04:00
public uint NameOffset { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// File descriptor name
/// </summary>
2023-09-10 21:24:10 -04:00
public string? Name { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// Directory index
/// </summary>
2023-09-10 21:24:10 -04:00
public uint DirectoryIndex { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// File flags
/// </summary>
2023-09-10 21:24:10 -04:00
public FileFlags Flags { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// Size of the entry when expanded
/// </summary>
2023-09-10 21:24:10 -04:00
public ulong ExpandedSize { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// Size of the entry when compressed
/// </summary>
2023-09-10 21:24:10 -04:00
public ulong CompressedSize { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// Offset to the entry data
/// </summary>
2023-09-10 21:24:10 -04:00
public ulong DataOffset { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// MD5 of the entry data
/// </summary>
2023-09-10 21:24:10 -04:00
public byte[]? MD5 { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// Volume number
/// </summary>
2023-09-10 21:24:10 -04:00
public ushort Volume { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// Link previous
/// </summary>
2023-09-10 21:24:10 -04:00
public uint LinkPrevious { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// Link next
/// </summary>
2023-09-10 21:24:10 -04:00
public uint LinkNext { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// Link flags
/// </summary>
2023-09-10 21:24:10 -04:00
public LinkFlags LinkFlags { get; set; }
2023-09-04 00:11:04 -04:00
}
}