mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[FileTools] Get Zip/TZip work done up to this point committed
This commit is contained in:
@@ -472,4 +472,45 @@ namespace SabreTools.Helper
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Archive structs
|
||||
|
||||
/// <summary>
|
||||
/// Intermediate struct for holding zip archive information
|
||||
/// </summary>
|
||||
public struct ZipArchiveStruct
|
||||
{
|
||||
public string FileName;
|
||||
public string Comment;
|
||||
public bool Zip64;
|
||||
|
||||
public List<ZipArchiveEntryStruct> Entries;
|
||||
public int SOCDOffset;
|
||||
public int EOCDOffset;
|
||||
public int CentralDirectoryCRC;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Intermediate struct for holding zip archive entry information
|
||||
/// </summary>
|
||||
public struct ZipArchiveEntryStruct
|
||||
{
|
||||
public short VersionMadeBy;
|
||||
public short VersionNeeded;
|
||||
public short GeneralPurposeFlag;
|
||||
public short CompressionMethod;
|
||||
public short LastModFileTime;
|
||||
public short LastModFileDate;
|
||||
public int CRC;
|
||||
public int CompressedSize;
|
||||
public int UncompressedSize;
|
||||
public string FileName;
|
||||
public string ExtraField;
|
||||
public string Comment;
|
||||
public short InternalFileAttributes;
|
||||
public int ExternalFileAttributes;
|
||||
public int RelativeOffset;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user