1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
// 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.
namespace WixToolset.Dtf.Compression.Zip
{
using System.Diagnostics.CodeAnalysis;
/// <summary>
/// Identifies the compression method or "algorithm"
/// used for a single file within a zip archive.
/// </summary>
/// <remarks>
/// Proprietary zip implementations may define additional compression
/// methods outside of those included here.
/// </remarks>
public enum ZipCompressionMethod
{
/// <summary>
/// The file is stored (no compression)
/// </summary>
Store = 0,
/// <summary>
/// The file is Shrunk
/// </summary>
Shrink = 1,
/// <summary>
/// The file is Reduced with compression factor 1
/// </summary>
Reduce1 = 2,
/// <summary>
/// The file is Reduced with compression factor 2
/// </summary>
Reduce2 = 3,
/// <summary>
/// The file is Reduced with compression factor 3
/// </summary>
Reduce3 = 4,
/// <summary>
/// The file is Reduced with compression factor 4
/// </summary>
Reduce4 = 5,
/// <summary>
/// The file is Imploded
/// </summary>
Implode = 6,
/// <summary>
/// The file is Deflated;
/// the most common and widely-compatible form of zip compression.
/// </summary>
Deflate = 8,
/// <summary>
/// The file is Deflated using the enhanced Deflate64 method.
/// </summary>
Deflate64 = 9,
/// <summary>
/// The file is compressed using the BZIP2 algorithm.
/// </summary>
BZip2 = 12,
/// <summary>
/// The file is compressed using the LZMA algorithm.
/// </summary>
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Lzma")]
Lzma = 14,
/// <summary>
/// The file is compressed using the PPMd algorithm.
/// </summary>
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Ppmd")]
Ppmd = 98
}
}
|