Files
BinaryObjectScanner/BinaryObjectScanner.Models/InstallShieldCabinet/FileDescriptor.cs

66 lines
1.5 KiB
C#
Raw Normal View History

2023-03-07 16:59:14 -05:00
namespace BinaryObjectScanner.Models.InstallShieldCabinet
2022-12-27 16:54:06 -08:00
{
/// <see href="https://github.com/twogood/unshield/blob/main/lib/cabfile.h"/>
public sealed class FileDescriptor
{
2023-01-14 00:41:13 -08:00
/// <summary>
/// Offset to the file descriptor name
/// </summary>
2022-12-27 16:54:06 -08:00
public uint NameOffset;
2023-01-14 00:41:13 -08:00
/// <summary>
/// File descriptor name
/// </summary>
2022-12-27 16:54:06 -08:00
public string Name;
2023-01-14 00:41:13 -08:00
/// <summary>
/// Directory index
/// </summary>
2022-12-27 16:54:06 -08:00
public uint DirectoryIndex;
2023-01-14 00:41:13 -08:00
/// <summary>
/// File flags
/// </summary>
2022-12-27 16:54:06 -08:00
public FileFlags Flags;
2023-01-14 00:41:13 -08:00
/// <summary>
/// Size of the entry when expanded
/// </summary>
2022-12-27 16:54:06 -08:00
public ulong ExpandedSize;
2023-01-14 00:41:13 -08:00
/// <summary>
/// Size of the entry when compressed
/// </summary>
2022-12-27 16:54:06 -08:00
public ulong CompressedSize;
2023-01-14 00:41:13 -08:00
/// <summary>
/// Offset to the entry data
/// </summary>
2022-12-27 16:54:06 -08:00
public ulong DataOffset;
2023-01-14 00:41:13 -08:00
/// <summary>
/// MD5 of the entry data
/// </summary>
2022-12-27 16:54:06 -08:00
public byte[] MD5;
2023-01-14 00:41:13 -08:00
/// <summary>
/// Volume number
/// </summary>
2022-12-27 16:54:06 -08:00
public ushort Volume;
2023-01-14 00:41:13 -08:00
/// <summary>
/// Link previous
/// </summary>
2022-12-27 16:54:06 -08:00
public uint LinkPrevious;
2023-01-14 00:41:13 -08:00
/// <summary>
/// Link next
/// </summary>
2022-12-27 16:54:06 -08:00
public uint LinkNext;
2023-01-14 00:41:13 -08:00
/// <summary>
/// Link flags
/// </summary>
2022-12-27 16:54:06 -08:00
public LinkFlags LinkFlags;
}
}