-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathConstants.cs
More file actions
30 lines (27 loc) · 1.05 KB
/
Constants.cs
File metadata and controls
30 lines (27 loc) · 1.05 KB
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
namespace CabMaker
{
public static class Constants
{
public static CompressionType DefaultCompressionType = CompressionType.MSZIP;
public static CompressionWindowSize DefaultCompressionWindowSize;
static Constants()
{
DefaultCompressionWindowSize = CompressionWindowSizes[3];
}
/// <summary>
/// Size of the LZX sliding window.
/// </summary>
/// <see cref="https://docs.microsoft.com/en-us/previous-versions/bb417343(v=msdn.10)"/>
public static CompressionWindowSize[] CompressionWindowSizes = new []
{
new CompressionWindowSize(15, "32 KB"), // 2^15
new CompressionWindowSize(16, "64 KB"), // 2^16
new CompressionWindowSize(17, "128 KB"), // etc.
new CompressionWindowSize(18, "256 KB"),
new CompressionWindowSize(19, "512 KB"),
new CompressionWindowSize(20, "1 MB"),
new CompressionWindowSize(21, "2 MB")
};
public const int MaxLinesInDdf = 1024;
}
}