[ALL] TorrentZip stuff

Taking a cue from RomVault and GordonJ, I'm including the Zlib code as converted by DotNetZip as well as creating a couple slightly more maleable structures for writing archives.
This commit is contained in:
Matt Nadareski
2016-09-15 12:16:33 -07:00
parent 5f79f4205c
commit 29b1330d97
26 changed files with 12095 additions and 104 deletions

View File

@@ -35,7 +35,7 @@ namespace SabreTools.Helper
/// Determines the archive general bit flags
/// </summary>
[Flags]
public enum GeneralPurposeBitFlag
public enum GeneralPurposeBitFlag : ushort
{
Encrypted = 0x0001,
ZeroedCRCAndSize = 0x0008,
@@ -71,7 +71,7 @@ namespace SabreTools.Helper
/// Internal file attributes used by archives
/// </summary>
[Flags]
public enum InternalFileAttributes
public enum InternalFileAttributes : ushort
{
ASCIIOrTextFile = 0x0001,
RecordLengthControl = 0x0002,