Files
SabreTools.Serialization/SabreTools.Data.Models/Quantum/FileDescriptor.cs

51 lines
1.4 KiB
C#
Raw Normal View History

2025-09-26 13:06:18 -04:00
namespace SabreTools.Data.Models.Quantum
2025-09-26 10:57:15 -04:00
{
/// <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; }
2025-10-30 23:30:45 -04:00
2025-09-26 10:57:15 -04:00
/// <summary>
/// File name, variable length string, not zero-terminated
/// </summary>
public string FileName { get; set; } = string.Empty;
2025-09-26 10:57:15 -04:00
/// <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; } = string.Empty;
2025-09-26 10:57:15 -04:00
/// <summary>
/// Fully expanded file size in bytes
/// </summary>
public uint ExpandedFileSize { get; set; }
/// <summary>
2025-10-30 23:30:45 -04:00
/// File time (DOS format)
2025-09-26 10:57:15 -04:00
/// </summary>
public ushort FileTime { get; set; }
/// <summary>
2025-10-30 23:30:45 -04:00
/// File date (DOS format)
2025-09-26 10:57:15 -04:00
/// </summary>
public ushort FileDate { get; set; }
/// <summary>
/// Unknown data, Checksum?
/// </summary>
/// <remarks>Minor version 22</remarks>
public ushort? Unknown { get; set; }
}
2025-10-30 23:30:45 -04:00
}