diff options
Diffstat (limited to 'src/dtf/WixToolset.Dtf.Compression.Zip/ZipCompressionMethod.cs')
| -rw-r--r-- | src/dtf/WixToolset.Dtf.Compression.Zip/ZipCompressionMethod.cs | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/src/dtf/WixToolset.Dtf.Compression.Zip/ZipCompressionMethod.cs b/src/dtf/WixToolset.Dtf.Compression.Zip/ZipCompressionMethod.cs new file mode 100644 index 00000000..2e1c7567 --- /dev/null +++ b/src/dtf/WixToolset.Dtf.Compression.Zip/ZipCompressionMethod.cs | |||
| @@ -0,0 +1,80 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
| 2 | |||
| 3 | namespace WixToolset.Dtf.Compression.Zip | ||
| 4 | { | ||
| 5 | using System.Diagnostics.CodeAnalysis; | ||
| 6 | |||
| 7 | /// <summary> | ||
| 8 | /// Identifies the compression method or "algorithm" | ||
| 9 | /// used for a single file within a zip archive. | ||
| 10 | /// </summary> | ||
| 11 | /// <remarks> | ||
| 12 | /// Proprietary zip implementations may define additional compression | ||
| 13 | /// methods outside of those included here. | ||
| 14 | /// </remarks> | ||
| 15 | public enum ZipCompressionMethod | ||
| 16 | { | ||
| 17 | /// <summary> | ||
| 18 | /// The file is stored (no compression) | ||
| 19 | /// </summary> | ||
| 20 | Store = 0, | ||
| 21 | |||
| 22 | /// <summary> | ||
| 23 | /// The file is Shrunk | ||
| 24 | /// </summary> | ||
| 25 | Shrink = 1, | ||
| 26 | |||
| 27 | /// <summary> | ||
| 28 | /// The file is Reduced with compression factor 1 | ||
| 29 | /// </summary> | ||
| 30 | Reduce1 = 2, | ||
| 31 | |||
| 32 | /// <summary> | ||
| 33 | /// The file is Reduced with compression factor 2 | ||
| 34 | /// </summary> | ||
| 35 | Reduce2 = 3, | ||
| 36 | |||
| 37 | /// <summary> | ||
| 38 | /// The file is Reduced with compression factor 3 | ||
| 39 | /// </summary> | ||
| 40 | Reduce3 = 4, | ||
| 41 | |||
| 42 | /// <summary> | ||
| 43 | /// The file is Reduced with compression factor 4 | ||
| 44 | /// </summary> | ||
| 45 | Reduce4 = 5, | ||
| 46 | |||
| 47 | /// <summary> | ||
| 48 | /// The file is Imploded | ||
| 49 | /// </summary> | ||
| 50 | Implode = 6, | ||
| 51 | |||
| 52 | /// <summary> | ||
| 53 | /// The file is Deflated; | ||
| 54 | /// the most common and widely-compatible form of zip compression. | ||
| 55 | /// </summary> | ||
| 56 | Deflate = 8, | ||
| 57 | |||
| 58 | /// <summary> | ||
| 59 | /// The file is Deflated using the enhanced Deflate64 method. | ||
| 60 | /// </summary> | ||
| 61 | Deflate64 = 9, | ||
| 62 | |||
| 63 | /// <summary> | ||
| 64 | /// The file is compressed using the BZIP2 algorithm. | ||
| 65 | /// </summary> | ||
| 66 | BZip2 = 12, | ||
| 67 | |||
| 68 | /// <summary> | ||
| 69 | /// The file is compressed using the LZMA algorithm. | ||
| 70 | /// </summary> | ||
| 71 | [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Lzma")] | ||
| 72 | Lzma = 14, | ||
| 73 | |||
| 74 | /// <summary> | ||
| 75 | /// The file is compressed using the PPMd algorithm. | ||
| 76 | /// </summary> | ||
| 77 | [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Ppmd")] | ||
| 78 | Ppmd = 98 | ||
| 79 | } | ||
| 80 | } | ||
