mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-05 22:01:33 +00:00
This change looks dramatic, but it's just separating out the already-split namespaces into separate top-level folders. In theory, every single one could be built into their own Nuget package. `SabreTools.Serialization` still builds the normal Nuget package that is used by all other projects and includes all namespaces.
51 lines
1.4 KiB
C#
51 lines
1.4 KiB
C#
namespace SabreTools.Data.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; } = string.Empty;
|
|
|
|
/// <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;
|
|
|
|
/// <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; }
|
|
}
|
|
}
|