Add extension properties from UnshieldSharp

This commit is contained in:
Matt Nadareski
2024-04-24 00:29:27 -04:00
parent 99baeba735
commit c685b5e679

View File

@@ -15,6 +15,26 @@ namespace SabreTools.Serialization.Wrappers
#region Extension Properties
/// <summary>
/// Number of components in the cabinet set
/// </summary>
public int ComponentCount => Model.Components!.Length;
/// <summary>
/// Number of directories in the cabinet set
/// </summary>
public ushort DirectoryCount => Model.Descriptor!.DirectoryCount;
/// <summary>
/// Number of files in the cabinet set
/// </summary>
public uint FileCount => Model.Descriptor!.FileCount;
/// <summary>
/// Number of file groups in the cabinet set
/// </summary>
public int FileGroupCount => Model.FileGroups!.Length;
/// <summary>
/// The major version of the cabinet
/// </summary>