PageRenderTime 42ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/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
  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. using System;
  5. namespace Delta.Utilities.Compression
  6. {
  7. /// <summary>
  8. /// Defines the contents of the general bit flags field for an archive entry.
  9. /// </summary>
  10. [Flags]
  11. internal enum GeneralBitFlags
  12. {
  13. /// <summary>
  14. /// If set indicates that the file is encrypted
  15. /// </summary>
  16. Encrypted = 0x0001,
  17. /// <summary>
  18. /// Two bits defining the compression method (only for Method 6 Imploding
  19. /// and 8,9 Deflating)
  20. /// </summary>
  21. Method = 0x0006,
  22. /// <summary>
  23. /// If set a trailing data descriptor is appended to the entry data
  24. /// </summary>
  25. Descriptor = 0x0008,
  26. /// <summary>
  27. /// Reserved
  28. /// </summary>
  29. Reserved = 0x0010,
  30. /// <summary>
  31. /// If set indicates the file contains Pkzip compressed patched data.
  32. /// </summary>
  33. Patched = 0x0020,
  34. /// <summary>
  35. /// If set strong encryption has been used for this entry.
  36. /// </summary>
  37. StrongEncryption = 0x0040,
  38. /// <summary>
  39. /// Reserved by PKWare for enhanced compression.
  40. /// </summary>
  41. EnhancedCompress = 0x1000,
  42. /// <summary>
  43. /// If set indicates that values in the local header are masked to hide
  44. /// their actual values. Used when encrypting the central directory
  45. /// contents.
  46. /// </summary>
  47. HeaderMasked = 0x2000
  48. }
  49. }