/Utilities/Compression/GeneralBitFlags.cs
C# | 58 lines | 16 code | 9 blank | 33 comment | 0 complexity | e73dbd6e0c97df18e81eed97fb97b1d1 MD5 | raw file
1// Based on Mike Krueger's SharpZipLib, Copyright (C) 2001 (GNU license). 2// Authors of the original java version: Jochen Hoenicke, John Leuner 3// See http://www.ISeeSharpCode.com for more information. 4 5using System; 6 7namespace Delta.Utilities.Compression 8{ 9 /// <summary> 10 /// Defines the contents of the general bit flags field for an archive entry. 11 /// </summary> 12 [Flags] 13 internal enum GeneralBitFlags 14 { 15 /// <summary> 16 /// If set indicates that the file is encrypted 17 /// </summary> 18 Encrypted = 0x0001, 19 20 /// <summary> 21 /// Two bits defining the compression method (only for Method 6 Imploding 22 /// and 8,9 Deflating) 23 /// </summary> 24 Method = 0x0006, 25 26 /// <summary> 27 /// If set a trailing data descriptor is appended to the entry data 28 /// </summary> 29 Descriptor = 0x0008, 30 31 /// <summary> 32 /// Reserved 33 /// </summary> 34 Reserved = 0x0010, 35 36 /// <summary> 37 /// If set indicates the file contains Pkzip compressed patched data. 38 /// </summary> 39 Patched = 0x0020, 40 41 /// <summary> 42 /// If set strong encryption has been used for this entry. 43 /// </summary> 44 StrongEncryption = 0x0040, 45 46 /// <summary> 47 /// Reserved by PKWare for enhanced compression. 48 /// </summary> 49 EnhancedCompress = 0x1000, 50 51 /// <summary> 52 /// If set indicates that values in the local header are masked to hide 53 /// their actual values. Used when encrypting the central directory 54 /// contents. 55 /// </summary> 56 HeaderMasked = 0x2000 57 } 58}