/Utilities/Compression/GeneralBitFlags.cs
C# | 58 lines | 16 code | 9 blank | 33 comment | 0 complexity | e73dbd6e0c97df18e81eed97fb97b1d1 MD5 | raw file
Possible License(s): Apache-2.0
- // Based on Mike Krueger's SharpZipLib, Copyright (C) 2001 (GNU license).
- // Authors of the original java version: Jochen Hoenicke, John Leuner
- // See http://www.ISeeSharpCode.com for more information.
-
- using System;
-
- namespace Delta.Utilities.Compression
- {
- /// <summary>
- /// Defines the contents of the general bit flags field for an archive entry.
- /// </summary>
- [Flags]
- internal enum GeneralBitFlags
- {
- /// <summary>
- /// If set indicates that the file is encrypted
- /// </summary>
- Encrypted = 0x0001,
-
- /// <summary>
- /// Two bits defining the compression method (only for Method 6 Imploding
- /// and 8,9 Deflating)
- /// </summary>
- Method = 0x0006,
-
- /// <summary>
- /// If set a trailing data descriptor is appended to the entry data
- /// </summary>
- Descriptor = 0x0008,
-
- /// <summary>
- /// Reserved
- /// </summary>
- Reserved = 0x0010,
-
- /// <summary>
- /// If set indicates the file contains Pkzip compressed patched data.
- /// </summary>
- Patched = 0x0020,
-
- /// <summary>
- /// If set strong encryption has been used for this entry.
- /// </summary>
- StrongEncryption = 0x0040,
-
- /// <summary>
- /// Reserved by PKWare for enhanced compression.
- /// </summary>
- EnhancedCompress = 0x1000,
-
- /// <summary>
- /// If set indicates that values in the local header are masked to hide
- /// their actual values. Used when encrypting the central directory
- /// contents.
- /// </summary>
- HeaderMasked = 0x2000
- }
- }