mirror of
https://github.com/SabreTools/SabreTools.Models.git
synced 2026-02-16 13:55:29 +00:00
50 lines
1.4 KiB
C#
50 lines
1.4 KiB
C#
namespace SabreTools.Models.Quantum
|
|
{
|
|
/// <summary>
|
|
/// Quantum archive file descriptor
|
|
/// </summary>
|
|
/// <see href="https://handwiki.org/wiki/Software:Quantum_compression"/>
|
|
public class FileDescriptor
|
|
{
|
|
/// <summary>
|
|
/// Length of file name
|
|
/// </summary>
|
|
public int FileNameSize { get; set; }
|
|
|
|
/// <summary>
|
|
/// File name, variable length string, not zero-terminated
|
|
/// </summary>
|
|
public string? FileName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Length of comment field
|
|
/// </summary>
|
|
public int CommentFieldSize { get; set; }
|
|
|
|
/// <summary>
|
|
/// Comment field, variable length string, not zero-terminated
|
|
/// </summary>
|
|
public string? CommentField { get; set; }
|
|
|
|
/// <summary>
|
|
/// Fully expanded file size in bytes
|
|
/// </summary>
|
|
public uint ExpandedFileSize { get; set; }
|
|
|
|
/// <summary>
|
|
/// File time (DOS format)
|
|
/// </summary>
|
|
public ushort FileTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// File date (DOS format)
|
|
/// </summary>
|
|
public ushort FileDate { get; set; }
|
|
|
|
/// <summary>
|
|
/// Unknown data, Checksum?
|
|
/// </summary>
|
|
/// <remarks>Minor version 22</remarks>
|
|
public ushort? Unknown { get; set; }
|
|
}
|
|
} |