glosc-mcp 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/README.md +23 -0
  2. package/build/GloscMcp.js +207 -0
  3. package/build/GloscTools.js +495 -0
  4. package/build/index.js +12 -0
  5. package/libs/7z/Linux/7zz +0 -0
  6. package/libs/7z/Linux/7zzs +0 -0
  7. package/libs/7z/Linux/History.txt +178 -0
  8. package/libs/7z/Linux/License.txt +144 -0
  9. package/libs/7z/Linux/MANUAL/cmdline/commands/add.htm +96 -0
  10. package/libs/7z/Linux/MANUAL/cmdline/commands/bench.htm +186 -0
  11. package/libs/7z/Linux/MANUAL/cmdline/commands/delete.htm +64 -0
  12. package/libs/7z/Linux/MANUAL/cmdline/commands/extract.htm +101 -0
  13. package/libs/7z/Linux/MANUAL/cmdline/commands/extract_full.htm +77 -0
  14. package/libs/7z/Linux/MANUAL/cmdline/commands/hash.htm +101 -0
  15. package/libs/7z/Linux/MANUAL/cmdline/commands/index.htm +36 -0
  16. package/libs/7z/Linux/MANUAL/cmdline/commands/list.htm +79 -0
  17. package/libs/7z/Linux/MANUAL/cmdline/commands/rename.htm +51 -0
  18. package/libs/7z/Linux/MANUAL/cmdline/commands/style.css +232 -0
  19. package/libs/7z/Linux/MANUAL/cmdline/commands/test.htm +51 -0
  20. package/libs/7z/Linux/MANUAL/cmdline/commands/update.htm +74 -0
  21. package/libs/7z/Linux/MANUAL/cmdline/exit_codes.htm +27 -0
  22. package/libs/7z/Linux/MANUAL/cmdline/index.htm +29 -0
  23. package/libs/7z/Linux/MANUAL/cmdline/style.css +232 -0
  24. package/libs/7z/Linux/MANUAL/cmdline/switches/ar_exclude.htm +58 -0
  25. package/libs/7z/Linux/MANUAL/cmdline/switches/ar_include.htm +84 -0
  26. package/libs/7z/Linux/MANUAL/cmdline/switches/ar_no.htm +52 -0
  27. package/libs/7z/Linux/MANUAL/cmdline/switches/bb.htm +61 -0
  28. package/libs/7z/Linux/MANUAL/cmdline/switches/bs.htm +67 -0
  29. package/libs/7z/Linux/MANUAL/cmdline/switches/charset.htm +61 -0
  30. package/libs/7z/Linux/MANUAL/cmdline/switches/email.htm +43 -0
  31. package/libs/7z/Linux/MANUAL/cmdline/switches/exclude.htm +81 -0
  32. package/libs/7z/Linux/MANUAL/cmdline/switches/include.htm +152 -0
  33. package/libs/7z/Linux/MANUAL/cmdline/switches/index.htm +117 -0
  34. package/libs/7z/Linux/MANUAL/cmdline/switches/large_pages.htm +60 -0
  35. package/libs/7z/Linux/MANUAL/cmdline/switches/list_tech.htm +36 -0
  36. package/libs/7z/Linux/MANUAL/cmdline/switches/method.htm +1067 -0
  37. package/libs/7z/Linux/MANUAL/cmdline/switches/output_dir.htm +53 -0
  38. package/libs/7z/Linux/MANUAL/cmdline/switches/overwrite.htm +56 -0
  39. package/libs/7z/Linux/MANUAL/cmdline/switches/password.htm +80 -0
  40. package/libs/7z/Linux/MANUAL/cmdline/switches/recurse.htm +104 -0
  41. package/libs/7z/Linux/MANUAL/cmdline/switches/sa.htm +58 -0
  42. package/libs/7z/Linux/MANUAL/cmdline/switches/scc.htm +42 -0
  43. package/libs/7z/Linux/MANUAL/cmdline/switches/scrc.htm +54 -0
  44. package/libs/7z/Linux/MANUAL/cmdline/switches/sdel.htm +39 -0
  45. package/libs/7z/Linux/MANUAL/cmdline/switches/sfx.htm +154 -0
  46. package/libs/7z/Linux/MANUAL/cmdline/switches/shared.htm +40 -0
  47. package/libs/7z/Linux/MANUAL/cmdline/switches/sni.htm +56 -0
  48. package/libs/7z/Linux/MANUAL/cmdline/switches/sns.htm +77 -0
  49. package/libs/7z/Linux/MANUAL/cmdline/switches/spf.htm +80 -0
  50. package/libs/7z/Linux/MANUAL/cmdline/switches/spm.htm +72 -0
  51. package/libs/7z/Linux/MANUAL/cmdline/switches/ssc.htm +50 -0
  52. package/libs/7z/Linux/MANUAL/cmdline/switches/stdin.htm +56 -0
  53. package/libs/7z/Linux/MANUAL/cmdline/switches/stdout.htm +54 -0
  54. package/libs/7z/Linux/MANUAL/cmdline/switches/stl.htm +39 -0
  55. package/libs/7z/Linux/MANUAL/cmdline/switches/stop_switch.htm +32 -0
  56. package/libs/7z/Linux/MANUAL/cmdline/switches/stx.htm +50 -0
  57. package/libs/7z/Linux/MANUAL/cmdline/switches/style.css +232 -0
  58. package/libs/7z/Linux/MANUAL/cmdline/switches/type.htm +146 -0
  59. package/libs/7z/Linux/MANUAL/cmdline/switches/update.htm +179 -0
  60. package/libs/7z/Linux/MANUAL/cmdline/switches/volume.htm +49 -0
  61. package/libs/7z/Linux/MANUAL/cmdline/switches/working_dir.htm +56 -0
  62. package/libs/7z/Linux/MANUAL/cmdline/switches/yes.htm +48 -0
  63. package/libs/7z/Linux/MANUAL/cmdline/syntax.htm +118 -0
  64. package/libs/7z/Linux/MANUAL/general/7z.htm +117 -0
  65. package/libs/7z/Linux/MANUAL/general/faq.htm +125 -0
  66. package/libs/7z/Linux/MANUAL/general/formats.htm +104 -0
  67. package/libs/7z/Linux/MANUAL/general/index.htm +28 -0
  68. package/libs/7z/Linux/MANUAL/general/license.htm +26 -0
  69. package/libs/7z/Linux/MANUAL/general/performance.htm +55 -0
  70. package/libs/7z/Linux/MANUAL/general/register.htm +24 -0
  71. package/libs/7z/Linux/MANUAL/general/style.css +232 -0
  72. package/libs/7z/Linux/MANUAL/general/thanks.htm +44 -0
  73. package/libs/7z/Linux/MANUAL/start.htm +38 -0
  74. package/libs/7z/Linux/MANUAL/style.css +232 -0
  75. package/libs/7z/Linux/readme.txt +100 -0
  76. package/libs/7z/README.md +1 -0
  77. package/libs/7z/macOS/7zz +0 -0
  78. package/libs/7z/macOS/History.txt +178 -0
  79. package/libs/7z/macOS/License.txt +144 -0
  80. package/libs/7z/macOS/MANUAL/cmdline/commands/add.htm +96 -0
  81. package/libs/7z/macOS/MANUAL/cmdline/commands/bench.htm +186 -0
  82. package/libs/7z/macOS/MANUAL/cmdline/commands/delete.htm +64 -0
  83. package/libs/7z/macOS/MANUAL/cmdline/commands/extract.htm +101 -0
  84. package/libs/7z/macOS/MANUAL/cmdline/commands/extract_full.htm +77 -0
  85. package/libs/7z/macOS/MANUAL/cmdline/commands/hash.htm +101 -0
  86. package/libs/7z/macOS/MANUAL/cmdline/commands/index.htm +36 -0
  87. package/libs/7z/macOS/MANUAL/cmdline/commands/list.htm +79 -0
  88. package/libs/7z/macOS/MANUAL/cmdline/commands/rename.htm +51 -0
  89. package/libs/7z/macOS/MANUAL/cmdline/commands/style.css +232 -0
  90. package/libs/7z/macOS/MANUAL/cmdline/commands/test.htm +51 -0
  91. package/libs/7z/macOS/MANUAL/cmdline/commands/update.htm +74 -0
  92. package/libs/7z/macOS/MANUAL/cmdline/exit_codes.htm +27 -0
  93. package/libs/7z/macOS/MANUAL/cmdline/index.htm +29 -0
  94. package/libs/7z/macOS/MANUAL/cmdline/style.css +232 -0
  95. package/libs/7z/macOS/MANUAL/cmdline/switches/ar_exclude.htm +58 -0
  96. package/libs/7z/macOS/MANUAL/cmdline/switches/ar_include.htm +84 -0
  97. package/libs/7z/macOS/MANUAL/cmdline/switches/ar_no.htm +52 -0
  98. package/libs/7z/macOS/MANUAL/cmdline/switches/bb.htm +61 -0
  99. package/libs/7z/macOS/MANUAL/cmdline/switches/bs.htm +67 -0
  100. package/libs/7z/macOS/MANUAL/cmdline/switches/charset.htm +61 -0
  101. package/libs/7z/macOS/MANUAL/cmdline/switches/email.htm +43 -0
  102. package/libs/7z/macOS/MANUAL/cmdline/switches/exclude.htm +81 -0
  103. package/libs/7z/macOS/MANUAL/cmdline/switches/include.htm +152 -0
  104. package/libs/7z/macOS/MANUAL/cmdline/switches/index.htm +117 -0
  105. package/libs/7z/macOS/MANUAL/cmdline/switches/large_pages.htm +60 -0
  106. package/libs/7z/macOS/MANUAL/cmdline/switches/list_tech.htm +36 -0
  107. package/libs/7z/macOS/MANUAL/cmdline/switches/method.htm +1067 -0
  108. package/libs/7z/macOS/MANUAL/cmdline/switches/output_dir.htm +53 -0
  109. package/libs/7z/macOS/MANUAL/cmdline/switches/overwrite.htm +56 -0
  110. package/libs/7z/macOS/MANUAL/cmdline/switches/password.htm +80 -0
  111. package/libs/7z/macOS/MANUAL/cmdline/switches/recurse.htm +104 -0
  112. package/libs/7z/macOS/MANUAL/cmdline/switches/sa.htm +58 -0
  113. package/libs/7z/macOS/MANUAL/cmdline/switches/scc.htm +42 -0
  114. package/libs/7z/macOS/MANUAL/cmdline/switches/scrc.htm +54 -0
  115. package/libs/7z/macOS/MANUAL/cmdline/switches/sdel.htm +39 -0
  116. package/libs/7z/macOS/MANUAL/cmdline/switches/sfx.htm +154 -0
  117. package/libs/7z/macOS/MANUAL/cmdline/switches/shared.htm +40 -0
  118. package/libs/7z/macOS/MANUAL/cmdline/switches/sni.htm +56 -0
  119. package/libs/7z/macOS/MANUAL/cmdline/switches/sns.htm +77 -0
  120. package/libs/7z/macOS/MANUAL/cmdline/switches/spf.htm +80 -0
  121. package/libs/7z/macOS/MANUAL/cmdline/switches/spm.htm +72 -0
  122. package/libs/7z/macOS/MANUAL/cmdline/switches/ssc.htm +50 -0
  123. package/libs/7z/macOS/MANUAL/cmdline/switches/stdin.htm +56 -0
  124. package/libs/7z/macOS/MANUAL/cmdline/switches/stdout.htm +54 -0
  125. package/libs/7z/macOS/MANUAL/cmdline/switches/stl.htm +39 -0
  126. package/libs/7z/macOS/MANUAL/cmdline/switches/stop_switch.htm +32 -0
  127. package/libs/7z/macOS/MANUAL/cmdline/switches/stx.htm +50 -0
  128. package/libs/7z/macOS/MANUAL/cmdline/switches/style.css +232 -0
  129. package/libs/7z/macOS/MANUAL/cmdline/switches/type.htm +146 -0
  130. package/libs/7z/macOS/MANUAL/cmdline/switches/update.htm +179 -0
  131. package/libs/7z/macOS/MANUAL/cmdline/switches/volume.htm +49 -0
  132. package/libs/7z/macOS/MANUAL/cmdline/switches/working_dir.htm +56 -0
  133. package/libs/7z/macOS/MANUAL/cmdline/switches/yes.htm +48 -0
  134. package/libs/7z/macOS/MANUAL/cmdline/syntax.htm +118 -0
  135. package/libs/7z/macOS/MANUAL/general/7z.htm +117 -0
  136. package/libs/7z/macOS/MANUAL/general/faq.htm +125 -0
  137. package/libs/7z/macOS/MANUAL/general/formats.htm +104 -0
  138. package/libs/7z/macOS/MANUAL/general/index.htm +28 -0
  139. package/libs/7z/macOS/MANUAL/general/license.htm +26 -0
  140. package/libs/7z/macOS/MANUAL/general/performance.htm +55 -0
  141. package/libs/7z/macOS/MANUAL/general/register.htm +24 -0
  142. package/libs/7z/macOS/MANUAL/general/style.css +232 -0
  143. package/libs/7z/macOS/MANUAL/general/thanks.htm +44 -0
  144. package/libs/7z/macOS/MANUAL/start.htm +38 -0
  145. package/libs/7z/macOS/MANUAL/style.css +232 -0
  146. package/libs/7z/macOS/readme.txt +100 -0
  147. package/libs/7z/win/7za.dll +0 -0
  148. package/libs/7z/win/7za.exe +0 -0
  149. package/libs/7z/win/7zxa.dll +0 -0
  150. package/libs/7z/win/Far/7-ZipEng.hlf +85 -0
  151. package/libs/7z/win/Far/7-ZipEng.lng +220 -0
  152. package/libs/7z/win/Far/7-ZipFar.dll +0 -0
  153. package/libs/7z/win/Far/7-ZipFar64.dll +0 -0
  154. package/libs/7z/win/Far/7-ZipRus.hlf +84 -0
  155. package/libs/7z/win/Far/7-ZipRus.lng +220 -0
  156. package/libs/7z/win/Far/7zToFar.ini +67 -0
  157. package/libs/7z/win/Far/far7z.reg +67 -0
  158. package/libs/7z/win/Far/far7z.txt +73 -0
  159. package/libs/7z/win/License.txt +123 -0
  160. package/libs/7z/win/arm64/7-ZipFar.dll +0 -0
  161. package/libs/7z/win/arm64/7za.dll +0 -0
  162. package/libs/7z/win/arm64/7za.exe +0 -0
  163. package/libs/7z/win/arm64/7zxa.dll +0 -0
  164. package/libs/7z/win/history.txt +347 -0
  165. package/libs/7z/win/readme.txt +125 -0
  166. package/libs/7z/win/x64/7za.dll +0 -0
  167. package/libs/7z/win/x64/7za.exe +0 -0
  168. package/libs/7z/win/x64/7zxa.dll +0 -0
  169. package/package.json +50 -0
@@ -0,0 +1,1067 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2
+ <HTML>
3
+ <HEAD>
4
+ <META http-equiv="Content-Type" content="text/html; charset=Windows-1252">
5
+ <TITLE>-m (Set compression Method) switch</TITLE>
6
+ <LINK href="style.css" rel="stylesheet" type="text/css">
7
+ </HEAD>
8
+
9
+ <BODY>
10
+
11
+ <H1>-m (Set compression Method) switch</H1>
12
+
13
+ <P>Specifies the compression method.</P>
14
+
15
+ <H4>Syntax</H4>
16
+
17
+ <PRE class="syntax">
18
+ -m&lt;method_parameters>
19
+
20
+ </PRE>
21
+
22
+ <P>The format for this switch depends on the archive type.</P>
23
+
24
+ <UL>
25
+ <LI><TD><A class="parameter" href="#Zip">Zip</A></TD>
26
+ <LI><TD><A class="parameter" href="#GZ">GZip</A></TD>
27
+ <LI><TD><A class="parameter" href="#BZ2">BZip2</A></TD>
28
+ <LI><TD><A class="parameter" href="#7Z">7z</A></TD>
29
+ <LI><TD><A class="parameter" href="#XZ">XZ</A></TD>
30
+ <LI><TD><A class="parameter" href="#WIM">WIM</A></TD>
31
+ <LI><TD><A class="parameter" href="#TAR">Tar</A></TD>
32
+ </UL>
33
+
34
+ <P>-m switch also can specify hash method for
35
+ <A href="../commands/hash.htm">h (Hash)</A> command,</P>
36
+
37
+ <P><B>Notes:</B> "Default value" in switches descriptions means the value that
38
+ will be used if switch is not specified.</P>
39
+
40
+ <P>It's allowed to use reduced forms for boolean switches: <B>sw+</B> or <B>sw</B> instead
41
+ <B>sw=on</B>, and <B>sw-</B> instead of <B>sw=off</B>.
42
+ It's allowed to use reduced forms for switches with numbers: <B>x3</B> instead of
43
+ <B>x=3</B>.</P>
44
+
45
+ <H2><A name="Zip"></A>Zip</H2>
46
+ <TABLE>
47
+ <TR>
48
+ <TH width="160">Parameter</TH>
49
+ <TH align="center">Default</TH>
50
+ <TH>Description</TH> </TR>
51
+ <TR>
52
+ <TD><A class="parameter" href="#ZipX">x=[0 | 1 | 3 | 5 | 7 | 9 ]</A></TD>
53
+ <TD align="center">5</TD>
54
+ <TD>Sets level of compression.</TD> </TR>
55
+ <TR>
56
+ <TD>m={MethodID}</TD>
57
+ <TD align="center">Deflate</TD>
58
+ <TD>Sets a method: Copy, Deflate, Deflate64, BZip2, LZMA, PPMd.</TD> </TR>
59
+ <TR>
60
+ <TD><A class="parameter" href="#Deflate_FastBytes">fb={NumFastBytes}</A></TD>
61
+ <TD align="center">32</TD>
62
+ <TD>Sets number of Fast Bytes for Deflate encoder.</TD> </TR>
63
+ <TR>
64
+ <TD><A class="parameter" href="#Zip_Pass">pass={NumPasses}</A></TD>
65
+ <TD align="center">1</TD>
66
+ <TD>Sets number of Passes for Deflate encoder.</TD></TR>
67
+ <TR>
68
+ <TD><A class="parameter" href="#ZipDictionarySize">d={Size}[b|k|m]</A></TD>
69
+ <TD align="center">900000</TD>
70
+ <TD>Sets Dictionary size for BZip2</TD></TR>
71
+ <TR>
72
+ <TD><A class="parameter" href="#ZipMemorySize">mem={Size}[b|k|m]</A></TD>
73
+ <TD align="center">24</TD> <TD>Sets size of used memory for PPMd.</TD></TR>
74
+ <TR>
75
+ <TD><A class="parameter" href="#ZipOrder">o={Size}</A></TD>
76
+ <TD align="center">8</TD> <TD>Sets model order for PPMd.</TD></TR>
77
+ <TR>
78
+ <TD><A class="parameter" href="#ZipMultiThread">mt=[off | on | {N}]</A></TD>
79
+ <TD align="center">on</TD>
80
+ <TD>Sets multithreading mode.</TD></TR>
81
+ <TR>
82
+ <TD>em={EncryptionMethodID}</TD>
83
+ <TD align="center">ZipCrypto</TD>
84
+ <TD>Sets a encryption method: ZipCrypto, AES128, AES192, AES256</TD> </TR>
85
+ <TR> <TD><A class="parameter">cl=[off | on]</A></TD>
86
+ <TD align="center">off</TD> <TD>7-Zip always uses local code page for file names.</TD> </TR>
87
+ <TR> <TD><A class="parameter">cu=[off | on]</A></TD>
88
+ <TD align="center">off</TD> <TD>7-Zip uses UTF-8 for file names that contain non-ASCII symbols.</TD> </TR>
89
+ <TR> <TD><A class="parameter">cp={CodePage}</A></TD>
90
+ <TD align="center">off</TD> <TD>Sets code page</TD> </TR>
91
+
92
+ <TR> <TD> <A class="parameter"> tm=[off | on] </A> </TD> <TD align="center"> on </TD> <TD> Stores last Modified timestamps for files. </TD> </TR>
93
+ <TR> <TD> <A class="parameter"> tc=[off | on] </A> </TD> <TD align="center"> off </TD> <TD> Stores Creation timestamps for files. </TD> </TR>
94
+ <TR> <TD> <A class="parameter"> ta=[off | on] </A> </TD> <TD align="center"> off </TD> <TD> Stores last Access timestamps for files. </TD> </TR>
95
+ <TR> <TD> <A class="parameter"> tp={N} </A> </TD> <TD align="center"> 0 </TD>
96
+ <TD> Sets timestamp precision: 0 - Windows (100 ns), 1 - Unix (1 sec), 2 - DOS (2 sec). 3 - Windows (100 ns). </TD> </TR>
97
+ </TABLE>
98
+
99
+ <P>By default (if <B>cl</B> and <B>cu</B> switches are not specified), 7-Zip uses UTF-8 encoding
100
+ only for file names that contain symbols unsupported by local code page.</P>
101
+
102
+ <DL>
103
+ <DT><A name="ZipX"></A>x=[0 | 1 | 3 | 5 | 7 | 9 ]</DT>
104
+ <DD>
105
+ <P>Sets level of compression. x=0 means Copy mode (no compression).</P>
106
+ <P>Deflate / Deflate64 settings:</P>
107
+ <TABLE>
108
+ <TR> <TH>Level</TH> <TH>NumFastBytes</TH> <TH>NumPasses</TH> <TH>Description</TH> </TR>
109
+ <TR> <TD class="cc">1</TD> <TD class="cc" rowspan=3>32</TD> <TD class="cc" rowspan=3>1</TD> <TD>Fastest</TD> </TR>
110
+ <TR> <TD class="cc">3</TD> <TD>Fast</TR>
111
+ <TR> <TD class="cc">5</TD> <TD>Normal</TR>
112
+ <TR> <TD class="cc">7</TD> <TD class="cc">64</TD> <TD class="cc">3</TD> <TD>Maximum</TD> </TR>
113
+ <TR> <TD class="cc">9</TD> <TD class="cc">128</TD> <TD class="cc">10</TD> <TD>Ultra</TD> </TR>
114
+ </TABLE>
115
+
116
+ <P>x=1 and x=3 with Deflate method set fast mode for compression.</P>
117
+
118
+ <P>BZip2 settings:</P>
119
+ <TABLE>
120
+ <TR> <TH>Level</TH> <TH>Dictionary</TH> <TH>NumPasses</TH> <TH>Description</TH> </TR>
121
+ <TR> <TD class="cc">1</TD> <TD class="cc">100000</TD> <TD class="cc" rowspan=3>1</TD> <TD>Fastest</TD> </TR>
122
+ <TR> <TD class="cc">3</TD> <TD class="cc">500000</TD> <TD>Fast</TD> </TR>
123
+ <TR> <TD class="cc">5</TD> <TD class="cc" rowspan=3>900000</TD> <TD>Normal</TD> </TR>
124
+ <TR> <TD class="cc">7</TD> <TD align="center">2</TD> <TD>Maximum</TD> </TR>
125
+ <TR> <TD class="cc">9</TD> <TD align="center">7</TD> <TD>Ultra</TD> </TR>
126
+ </TABLE>
127
+ </DD>
128
+
129
+ <DT><A name="Deflate_FastBytes"></A>fb={NumFastBytes}</DT>
130
+ <DD>
131
+ <P>Sets the number of fast bytes for the Deflate/Deflate64 encoder.
132
+ It can be in the range from 3 to 258 (257 for Deflate64).
133
+ Usually, a big number gives a little bit better
134
+ compression ratio and a slower compression process.
135
+ A large fast bytes parameter can significantly increase the compression ratio
136
+ for files which contain long identical sequences of bytes.</P>
137
+ </DD>
138
+ <DT><A name="Zip_Pass"></A>pass={NumPasses}</DT>
139
+ <DD>
140
+ <P>Sets number of passes for Deflate encoder. It can be in the range from 1 to 15 for Deflate and
141
+ from 1 to 10 for BZip2. Usually, a big number gives a little bit better
142
+ compression ratio and a slower compression process.
143
+ </P>
144
+ </DD>
145
+ <DT><A name="ZipDictionarySize"></A>d={Size}[b|k|m]</DT>
146
+ <DD>
147
+ <P> Sets the Dictionary size for BZip2. You must specify the size in bytes, kilobytes, or megabytes.
148
+ The maximum value for the Dictionary size is 900000b. If you do not specify any symbol
149
+ from set [b|k|m], dictionary size will be calculated as DictionarySize = 2^Size bytes.</P>
150
+ </DD>
151
+
152
+ <DT><A name="ZipMemorySize"></A>mem={Size}[b|k|m]</DT>
153
+ <DD>
154
+ <P> Sets the size of memory used for PPMd. You must specify the size in bytes, kilobytes, or megabytes.
155
+ The maximum value is 256 MB = 2^28 bytes. The default value
156
+ is 24 (16MB). If you do not specify any symbol from the set [b|k|m], the
157
+ memory size will be calculated as (2^Size) bytes. PPMd uses the same
158
+ amount of memory for compression and decompression.</P>
159
+ </DD>
160
+
161
+ <DT><A name="ZipOrder"></A>o={Size}</DT>
162
+ <DD>
163
+ <P>Sets the model order for PPMd. The size must be in the range [2,16]. The default value is 8.</P>
164
+ </DD>
165
+
166
+ <DT><A name="ZipMultiThread"></A>mt=[off | on | {N}]</DT>
167
+ <DD>
168
+ <P>Sets multithread mode. If you have a multiprocessor or multicore system,
169
+ you can get a speed increase with
170
+ this switch. This option affects only compression (with any method) and
171
+ decompression of BZip2 streams.
172
+ Each thread in the multithread mode uses 32 MB of RAM for buffering.
173
+ If you specify {N}, 7-Zip tries to use N threads.</P>
174
+ </DD>
175
+ </DL>
176
+
177
+ <H2><A name="GZ"></A>GZip</H2>
178
+ GZip uses the same parameters as Zip, but GZip compresses only with Deflate method.
179
+ So GZip supports only the following parameters: x, fb, pass.
180
+
181
+ <H2><A name="BZ2"></A>BZip2</H2>
182
+ <TABLE>
183
+ <TR>
184
+ <TH width="160">Parameter</TH>
185
+ <TH align="center">Default</TH>
186
+ <TH>Description</TH> </TR>
187
+ <TR>
188
+ <TD><A class="parameter" href="#BZip2X">x=[1 | 3 | 5 | 7 | 9 ]</A></TD>
189
+ <TD align="center">5</TD>
190
+ <TD>Sets level of compression.</TD> </TR>
191
+ <TR>
192
+ <TD><A class="parameter" href="#BZip2Pass">pass={NumPasses}</A></TD>
193
+ <TD align="center">1</TD>
194
+ <TD>Sets number of Passes for Bzip2 encoder.</TD></TR>
195
+ <TR>
196
+ <TD><A class="parameter" href="#BZip2DictionarySize">d={Size}[b|k|m]</A></TD>
197
+ <TD align="center">900000</TD>
198
+ <TD>Sets Dictionary size for BZip2</TD></TR>
199
+ <TR>
200
+ <TD><A class="parameter" href="#BZip2MultiThread">mt=[off | on | {N}]</A></TD>
201
+ <TD align="center">on</TD>
202
+ <TD>Sets multithreading mode.</TD></TR>
203
+ </TABLE>
204
+
205
+ <DL>
206
+ <DT><A name="BZip2"></A>x=[1 | 3 | 5 | 7 | 9 ]</DT>
207
+ <DD>
208
+ <P>Sets level of compression</P>
209
+ <TABLE>
210
+ <TR> <TH>Level</TH> <TH>Dictionary</TH> <TH>NumPasses</TH> <TH>Description</TH> </TR>
211
+ <TR> <TD class="cc">1</TD> <TD class="cc">100000</TD> <TD class="cc" rowspan=3>1</TD> <TD>Fastest</TD> </TR>
212
+ <TR> <TD class="cc">3</TD> <TD class="cc">500000</TD> <TD>Fast</TD> </TR>
213
+ <TR> <TD class="cc">5</TD> <TD class="cc" rowspan=3>900000</TD> <TD>Normal</TD> </TR>
214
+ <TR> <TD class="cc">7</TD> <TD align="center">2</TD> <TD>Maximum</TD> </TR>
215
+ <TR> <TD class="cc">9</TD> <TD align="center">7</TD> <TD>Ultra</TD> </TR>
216
+ </TABLE>
217
+ </DD>
218
+
219
+ <DT><A name="BZip2DictionarySize"></A>d={Size}[b|k|m]</DT>
220
+ <DD>
221
+ <P> Sets the Dictionary size for BZip2. You must specify the size in bytes, kilobytes, or megabytes.
222
+ The maximum value for the Dictionary size is 900000b. If you do not specify any symbol
223
+ from set [b|k|m], dictionary size will be calculated as DictionarySize = 2^Size bytes.</P>
224
+ </DD>
225
+
226
+ <DT><A name="#BZip2Pass"></A>pass={NumPasses}</DT>
227
+ <DD>
228
+ <P>Sets the number of passes. It can be in the range from 1 to 10.
229
+ The default value is 1 for normal mode, 2 for maximum mode and 7 for ultra mode.
230
+ A bigger number can give a little bit better compression ratio and a slower compression process.
231
+ </P>
232
+ </DD>
233
+ <DT><A name="BZip2MultiThread"></A>mt=[off | on | {N}]</DT>
234
+ <DD>
235
+ <P>Sets multithread mode. If you have a multiprocessor or multicore system,
236
+ you can get a speed increase with
237
+ this switch. If you specify {N}, for example mt=4, 7-Zip tries to use 4 threads.</P>
238
+ </DD>
239
+ </DL>
240
+
241
+ <H2><A name="7Z"></A>7z</H2>
242
+ <TABLE>
243
+ <TR>
244
+ <TH width="80"> Parameter </TH>
245
+ <TH align="center"> Default </TH>
246
+ <TH> Description </TH>
247
+ </TR>
248
+ <TR> <TD> <A class="parameter" href="#SevenZipX"> x=[0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 ] </A> </TD> <TD align="center"> 5 </TD> <TD> Sets level of compression. </TD> </TR>
249
+ <TR> <TD> <A class="parameter" href="#SevenZipYX"> yx=[0 | 1 | 3 | 5 | 7 | 9 ] </A> </TD> <TD align="center"> 5 </TD> <TD> Sets level of file analysis. </TD> </TR>
250
+ <TR> <TD> <A class="parameter" href="#SevenZipYV"> yv={MMNN} </A> </TD> <TD align="center"> 2300 </TD> <TD> Sets decoder compatibility version.</TD> </TR>
251
+ <TR> <TD> <A class="parameter" href="#SevenZipYFA"> yfa={FilterID} </A> </TD> <TD align="center"> </TD> <TD> Allow 7-Zip to use the specified filter method.</TD> </TR>
252
+ <TR> <TD> <A class="parameter" href="#SevenZipYFD"> yfd={FilterID} </A> </TD> <TD align="center"> </TD> <TD> Disallow 7-Zip to use the specified filter method.</TD> </TR>
253
+ <TR> <TD> <A class="parameter" href="#MemUse"> memuse=[ p{N_Percents} | {N}b | {N}k | {N}m | {N}g | {N}t] </A> </TD> <TD align="center"> </TD> <TD> Sets memory usage size. </TD> </TR>
254
+ <TR> <TD> <A class="parameter" href="#Solid"> s=[off | on | [e] [{N}f] [{N}b | {N}k | {N}m | {N}g | {N}t]] </A> </TD> <TD align="center"> on </TD> <TD> Sets solid mode. </TD> </TR>
255
+ <TR> <TD> <A class="parameter" href="#qs"> qs=[off | on] </A> </TD> <TD align="center"> off </TD> <TD> Sort files by type in solid archives. </TD> </TR>
256
+ <TR> <TD> <A class="parameter" href="#Filter"> f=[off | on | FilterID] </A> </TD> <TD align="center"> on </TD> <TD>Enables or disables filters. FilterID: Delta:{N}, BCJ, BCJ2, ARM64, ARM, ARMT, RISCV, IA64, PPC, SPARC. </TD> </TR>
257
+ <TR> <TD> <A class="parameter" href="#HeaderCompress"> hc=[off | on] </A> </TD> <TD align="center">on</TD> <TD>Enables or disables archive header compressing. </TD> </TR>
258
+ <TR> <TD> <A class="parameter" href="#HeaderEncrypt"> he=[off | on] </A> </TD> <TD align="center">off</TD> <TD>Enables or disables archive header encryption. </TD> </TR>
259
+ <TR> <TD> <A class="parameter" href="#Bind">b{C1}[s{S1}]:{C2}[s{S2}] </A> </TD> <TD align="center"> </TD> <TD>Sets binding between coders.</TD> </TR>
260
+ <TR> <TD> <A class="parameter" href="#MethodID">{N}={MethodID}[:param1][:param2][..]</A></TD> <TD align="center">LZMA2</TD> <TD>Sets a method: LZMA, LZMA2, PPMd, BZip2, Deflate, Delta, BCJ, BCJ2, Copy. </TD> </TR>
261
+ <TR> <TD> <A class="parameter" href="#MultiThread"> mt=[off | on | {N}] </A> </TD> <TD align="center">on</TD> <TD> Sets multithreading mode. </TD> </TR>
262
+ <TR> <TD> <A class="parameter"> mtf=[off | on] </A> </TD> <TD align="center"> on </TD> <TD> Set multithreading mode for filters. </TD> </TR>
263
+ <TR> <TD> <A class="parameter"> tm=[off | on] </A> </TD> <TD align="center"> on </TD> <TD> Stores last Modified timestamps for files. </TD> </TR>
264
+ <TR> <TD> <A class="parameter"> tc=[off | on] </A> </TD> <TD align="center"> off </TD> <TD> Stores Creation timestamps for files. </TD> </TR>
265
+ <TR> <TD> <A class="parameter"> ta=[off | on] </A> </TD> <TD align="center"> off </TD> <TD> Stores last Access timestamps for files. </TD> </TR>
266
+ <TR> <TD> <A class="parameter"> tr=[off | on] </A> </TD> <TD align="center"> on </TD> <TD> Stores file attributes. </TD> </TR>
267
+ </TABLE>
268
+
269
+ <DL>
270
+ <DT><A name="SevenZipX"></A>x=[0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 ]</DT>
271
+ <DD>
272
+ <P>Sets level of compression</P>
273
+ <TABLE>
274
+ <TR> <TH>Level</TH> <TH>Method</TH> <TH>Dictionary</TH> <TH>FastBytes</TH> <TH>MatchFinder</TH> <TH>Filter</TH> <TH>Description</TH> </TR>
275
+ <TR> <TD align="center">0</TD> <TD align="center"> Copy</TD> <TD align="center"> </TD> <TD align="center"></TD> <TD align="center"></TD> <TD align="center"></TD> <TD>No compression.</TD> </TR>
276
+ <TR> <TD align="center">1</TD> <TD align="center">LZMA2</TD> <TD align="center">256 KB</TD> <TD align="center">32</TD> <TD align="center">HC5</TD> <TD align="center">BCJ</TD> <TD>Fastest compressing</TD> </TR>
277
+ <TR> <TD align="center">2</TD> <TD align="center">LZMA2</TD> <TD align="center"> 1 MB</TD> <TD align="center">32</TD> <TD align="center">HC5</TD> <TD align="center">BCJ</TD> <TD></TD> </TR>
278
+ <TR> <TD align="center">3</TD> <TD align="center">LZMA2</TD> <TD align="center"> 4 MB</TD> <TD align="center">32</TD> <TD align="center">HC5</TD> <TD align="center">BCJ</TD> <TD>Fast compressing</TD> </TR>
279
+ <TR> <TD align="center">4</TD> <TD align="center">LZMA2</TD> <TD align="center"> 16 MB</TD> <TD align="center">32</TD> <TD align="center">HC5</TD> <TD align="center">BCJ</TD> <TD></TD> </TR>
280
+ <TR> <TD align="center">5</TD> <TD align="center">LZMA2</TD> <TD align="center"> 32 MB</TD> <TD align="center">32</TD> <TD align="center">BT4</TD> <TD align="center">BCJ</TD> <TD>Normal compressing</TD> </TR>
281
+ <TR> <TD align="center">6</TD> <TD align="center">LZMA2</TD> <TD align="center"> 64 MB</TD> <TD align="center">32</TD> <TD align="center">BT4</TD> <TD align="center">BCJ</TD> <TD></TD> </TR>
282
+ <TR> <TD align="center">7</TD> <TD align="center">LZMA2</TD> <TD align="center">128 MB</TD> <TD align="center">64</TD> <TD align="center">BT4</TD> <TD align="center">BCJ</TD> <TD>Maximum compressing</TD> </TR>
283
+ <TR> <TD align="center">8</TD> <TD align="center">LZMA2</TD> <TD align="center">256 MB</TD> <TD align="center">64</TD> <TD align="center">BT4</TD> <TD align="center">BCJ</TD> <TD></TD> </TR>
284
+ <TR> <TD align="center">9</TD> <TD align="center">LZMA2</TD> <TD align="center">256 MB</TD> <TD align="center">64</TD> <TD align="center">BT4</TD> <TD align="center">BCJ2</TD><TD>Ultra compressing</TD> </TR>
285
+ </TABLE>
286
+ <P>Note: "x" works as "x=9".</P>
287
+ <P>Note: 7-Zip also can use another filters, like ARM64, RISCV.</P>
288
+ </DD>
289
+
290
+ <DT><A name="SevenZipYX"></A>yx=[0 | 1 | 3 | 5 | 7 | 9 ]</DT>
291
+ <DD>
292
+ <P>Sets level of file analysis</P>
293
+ <TABLE>
294
+ <TR> <TH>Level</TH> <TH>Description</TH> </TR>
295
+ <TR> <TD align="center">0</TD> <TD>No analysis.</TD> </TR>
296
+ <TR> <TD align="center">1 or more</TD> <TD>adds analysis for WAV files Delta filter).</TD> </TR>
297
+ <TR> <TD align="center">5 or more</TD> <TD>adds analysis for executable files (according file name extension and unix permissions).</TD> </TR>
298
+ <TR> <TD align="center">7 or more</TD> <TD>adds analysis for files without extension.</TD> </TR>
299
+ <TR> <TD align="center">9 or more</TD> <TD>analysis of all files (Delta and executable filters).</TD> </TR>
300
+ </TABLE>
301
+ <P>Default level is 5: "yx=5".</P>
302
+ <P>"yx" works as "yx=9".</P>
303
+
304
+ <P>7-Zip can analyze data of files before compression.
305
+ The level of file analysis sets which files must be be analyzed.
306
+ The analysis allows to select additional filter that can increase compression ratio for that file.
307
+ For analysis 7-Zip reads small data block at the beginning of file and tries to
308
+ parse the header.
309
+ Currently 7-Zip supports parsing for some formats:
310
+ WAV (audio files),
311
+ PE (Windows executables),
312
+ ELF (Linux executables),
313
+ Mach-O (macOS executables).
314
+ </P>
315
+
316
+ <P>If the level of file analysis is smaller than 9, 7-Zip selects files for analysis
317
+ according file name extension. Linux/macOS verions of 7-zip also can use
318
+ "Execute" (x) permission of file to select file for analysis.</P>
319
+
320
+ <P>Higher level of file analysis means more files for analysis.</P>
321
+
322
+ </DD>
323
+
324
+ <DT><A name="SevenZipYV"></A>yv={MMNN}</DT>
325
+ <DD>
326
+ <P>sets decoder compatibility version for archive creation.</P>
327
+ <P>{MMNN} is 4-digit number that represents the version of 7-Zip without a dot.
328
+ <P>If "yv" switch is not specified, default value 2300 is used.</P>
329
+ <P>If "yv" switch is used without "={MMNN}" version number, there is no restiction
330
+ for allowed filter methods. So "yv" switch is similar to "yv=9999".</P>
331
+ <P>When 7-Zip creates 7z archive, it uses only compression methods and compression
332
+ filters that are allowed by specified version of 7-Zip.<P>
333
+
334
+ <P>The list of new Filter methods that were supported by new versions of 7-Zip,
335
+ and that are not supported by older versions:<P>
336
+ <TABLE>
337
+ <TR> <TH>7-Zip Version</TH> <TH>Filter Name</TH> </TR>
338
+ <TR> <TD align="center">2300</TD> <TD align="center">ARM64</TD>
339
+ <TR> <TD align="center">2402</TD> <TD align="center">RISCV</TD>
340
+ </TABLE>
341
+
342
+ <P>Examples:</P>
343
+ <TABLE>
344
+ <TR> <TD>
345
+ <PRE class="example">
346
+ yv=1600
347
+ </PRE>
348
+ </TD>
349
+ <TD>use only filter methods that can be decoded by 7-Zip 16.00.
350
+ It will not use new ARM64 and RISCV filters.</TD>
351
+ </TR>
352
+ <TR> <TD>
353
+ <PRE class="example">
354
+ yv
355
+ </PRE>
356
+ </TD>
357
+ <TD>allow all supported filters.</TD>
358
+ </TR>
359
+ </TABLE>
360
+ </DD>
361
+
362
+ <DT><A name="SevenZipYFA"></A>yfa={FilterID}</DT>
363
+ <DD>
364
+ <P>allows 7-Zip to use the specified filter method for 7z archive creating.
365
+ FilterID can be: Delta, BCJ, BCJ2, ARM64, ARM, ARMT, RISCV, IA64, PPC, SPARC.
366
+ Multiple switches are allowed.
367
+ Note: "yfa" switch has higher priority than "yv" switch. So "yfa={FilterID}"
368
+ switch can enable filter that is not allowed by "yv={MMNN}" switch value.
369
+ </P>
370
+ <P>Examples:</P>
371
+ <PRE class="example">
372
+ yfa=RISCV
373
+ </PRE>
374
+ <P>allow 7-Zip to use RISCV filter for archive creation.</P>
375
+ </DD>
376
+
377
+ <DT><A name="SevenZipYFD"></A>yfd={FilterID}</DT>
378
+ <DD>
379
+ <P>disallows 7-Zip to use the specified filter method for 7z archive creating.
380
+ FilterID can be: Delta, BCJ, BCJ2, ARM64, ARM, ARMT, RISCV, IA64, PPC, SPARC.
381
+ Multiple switches are allowed.
382
+ Note: "yfd" switch has higher priority than "yv" and "yfa" switches.
383
+ </P>
384
+ <P>Examples:</P>
385
+ <TABLE>
386
+ <TR> <TD>
387
+ <PRE class="example">
388
+ yfd=ARM64 yfd=RISCV
389
+ </PRE>
390
+ </TD>
391
+ <TD>disallow 7-Zip to use ARM64 and RISCV filters for archive creation.</TD>
392
+ </TR>
393
+ <TR> <TD>
394
+ <PRE class="example">
395
+ yfd=BCJ2
396
+ </PRE>
397
+ </TD>
398
+ <TD>disallow 7-Zip to use BCJ2 filter for archive creation.</TD>
399
+ </TR>
400
+ </TABLE>
401
+ </DD>
402
+
403
+ <DT><A name="MemUse"></A>memuse=[ p{N_Percents} | {N}b | {N}k | {N}m | {N}g | {N}t]</DT>
404
+ <DD>
405
+ <P> Sets a limit on memory usage (RAM) for compressing and decompressing commands.
406
+ <P> Default memory limits are 80% from RAM size for compressing and 53% for decompressing.</P>
407
+ <P> 7-Zip tries to fit in specified memory limits by changing the number of working threads,
408
+ if the number of threads was not specified in command.
409
+ If 7-Zip cannot fit in specified memory limit, 7-Zip still executes the command.
410
+ </P>
411
+
412
+ <P>Example:</P>
413
+ <PRE class="example">
414
+ memuse=p60
415
+ </PRE>
416
+ <P>set the limit for memory usage to 60% of RAM size.</P>
417
+ <PRE class="example">
418
+ memuse=14g
419
+ </PRE>
420
+ <P>set the limit for memory usage to 14 GiB.</P>
421
+ </DD>
422
+
423
+ <DT><A name="Solid"></A>s=[off | on | [e] [{N}f] [{N}b | {N}k | {N}m | {N}g | {N}t]]</DT>
424
+ <DD>
425
+ <P> Enables or disables solid mode. The default mode is s=on.
426
+ In solid mode, files are grouped together. Usually, compressing in
427
+ solid mode improves the compression ratio.</P>
428
+
429
+ <TABLE>
430
+ <TR> <TD>e</TD> <TD>Use a separate solid block for each new file extension. You need to use <A class="parameter" href="#qs">qs</A> option also.</TD> </TR>
431
+ <TR> <TD>{N}f</TD> <TD>Set the limit for number of files in one solid block</TD> </TR>
432
+ <TR> <TD>{N}b | {N}k | {N}m | {N}g | {N}t</TD> <TD>Set a limit for the total size of a solid block in bytes / KiB / MiB / GiB / TiB.</TD> </TR>
433
+ </TABLE>
434
+
435
+ <P>The default solid block size depends on the compression method and the dictionary size.
436
+ The default dictionary size depends on the compression level.
437
+ </P>
438
+
439
+ <P>The default solid block size for all methods other than LZMA2
440
+ (LZMA, PPMD, BZIP2, Deflate, Deflate64) is caluclated by the formula:</P>
441
+ <PRE class="example">
442
+ SolidBlockSize_LZMA = max(16 MiB, min(4 GiB, DictionarySize * 128))
443
+ </PRE>
444
+
445
+ <P>The default solid block size for LZMA2 is caluclated by the formula:</P>
446
+ <PRE class="example">
447
+ ChunkSize = max(DictionarySize, min(256M, max(1M, DictionarySize * 4)))
448
+ SolidBlockSize_LZMA2 = max(16 MiB, min(16 GiB, ChunkSize * 64))
449
+ </PRE>
450
+
451
+ <P>The default solid block size for LZMA2 method:</P>
452
+
453
+ <TABLE>
454
+ <TR> <TH width="150">Compression Level</TH>
455
+ <TH>Dictionary Size</TH>
456
+ <TH>Chunk Size</TH>
457
+ <TH>Solid Block Size LZMA2</TH>
458
+ <TR> <TD>0 - Store </TD> <TD> 0 B</TD> <TD> 0 B</TD> <TD> 0 B</TD> </TR>
459
+ <TR> <TD>1 - Fastest</TD> <TD>256 KB</TD> <TD> 1 MB</TD> <TD> 64 MB</TD> </TR>
460
+ <TR> <TD>2 </TD> <TD> 1 MB</TD> <TD> 4 MB</TD> <TD>256 MB</TD> </TR>
461
+ <TR> <TD>3 - Fast </TD> <TD> 4 MB</TD> <TD> 16 MB</TD> <TD> 1 GB</TD> </TR>
462
+ <TR> <TD>4 </TD> <TD> 16 MB</TD> <TD> 64 MB</TD> <TD> 4 GB</TD> </TR>
463
+ <TR> <TD>5 - Normal </TD> <TD> 32 MB</TD> <TD>128 MB</TD> <TD> 8 GB</TD> </TR>
464
+ <TR> <TD>6 </TD> <TD> 64 MB</TD> <TD>256 MB</TD> <TD> 16 GB</TD> </TR>
465
+ <TR> <TD>7 - Maximum</TD> <TD>128 MB</TD> <TD>256 MB</TD> <TD> 16 GB</TD> </TR>
466
+ <TR> <TD>8 </TD> <TD>256 MB</TD> <TD>256 MB</TD> <TD> 16 GB</TD> </TR>
467
+ <TR> <TD>9 - Ultra </TD> <TD>256 MB</TD> <TD>256 MB</TD> <TD> 16 GB</TD> </TR>
468
+ </TABLE>
469
+
470
+ <P>NOTE: if LZMA2 is used, 7-Zip can split data into chunks and then it
471
+ compresses those chunks simultaneously using multiple CPU threads.
472
+ By default, there are 64 chunks in a solid block.
473
+ LZMA2 encoder uses about 2 CPU threads per chunk at compression level 5 or higher.
474
+ So by default LZMA2 encoder can use up to 128 CPU threads for compression,
475
+ if CPU supports such number of threads.
476
+
477
+ 7-Zip doesn't compress several solid blocks simultaneously to the 7z archive.
478
+ Thus, multitreading is provided only within a solid block of the 7z archive.
479
+ If solid block is large, then there are more chunks in solid block,
480
+ and LZMA encoder and decoder can use more cpu threads for compression and decompression.</P>
481
+
482
+ <P>Limitation of the solid block size usually decreases compression ratio but gives the following advantages:</P>
483
+ <UL>
484
+ <LI>it reduces data loss in case of future archive damage.
485
+ <LI>it reduces extraction time of a group of files (or just one
486
+ file), so long as the group doesn't contain the entire archive.</LI></LI>
487
+ </UL>
488
+ <P>The updating of solid .7z archives can be slow, since it
489
+ can require some recompression.</P>
490
+
491
+ <P>Example:</P>
492
+ <PRE class="example">
493
+ s=100f256m
494
+ </PRE>
495
+ <P>set solid mode with 100 files & 256 MB limits per one solid block for 7z format.</P>
496
+ </DD>
497
+
498
+
499
+
500
+ <DT><A name="qs"></A>qs=[off | on]</DT>
501
+ <DD>
502
+ <P> Enables or disables sorting files by type in solid archives.
503
+ The default mode is qs=off. </P>
504
+
505
+ <P>Old versions of 7-Zip (before version 15.06) used file sorting "by type" ("by extension").</P>
506
+
507
+ <P>New versions of 7-Zip (starting from version 15.06) support two sorting orders:</P>
508
+ <UL>
509
+ <LI>qs- : sorting by name : it's default order.</LI>
510
+ <LI>qs : sorting by type (by file extension). </LI>
511
+ </UL>
512
+
513
+ <P>You can get big difference in compression ratio for different sorting methods,
514
+ if dictionary size is smaller than total size of files.
515
+ If there are similar files in different folders, the sorting "by type" can provide
516
+ better compression ratio in some cases.</P>
517
+
518
+ <P>Note that sorting "by type" has some drawbacks.
519
+ For example, NTFS volumes use sorting order "by name", so if an archive uses
520
+ another sorting, then the speed of some operations for files with unusual order
521
+ can fall on HDD devices (HDDs have low speed for "seek" operations).</P>
522
+
523
+ <P>If "qs" mode provides much better compression ratio than default "qs-" mode,
524
+ you still can increase compression ratio for "qs-" mode by increasing of
525
+ dictionary size.</P>
526
+
527
+ <P>If you think that unusual file order is not problem for you,
528
+ and if better compression ratio with small dictionary is more important for you,
529
+ use "qs" mode.</P>
530
+
531
+ <P>Note: There are some files (for example, executable files),
532
+ that are compressed with additional filter. 7-Zip can't use different compression methods in
533
+ one solid block, so 7-zip can create several groups of files that don't follow
534
+ "by name" order in "qs-" mode, but files inside each group are still sorted by name in "qs-" mode.</P>
535
+ </DD>
536
+
537
+
538
+ <DT><A name="Filter"></A>f=[off | on | FilterID]</DT>
539
+ <DD>
540
+ <P>Enables or disables compression filters.
541
+ The default mode is f=on, when 7-zip uses filter for some files:
542
+ executables files (dll, exe, ocx, sfx, sys) and wav files.
543
+ for x86 executables it can use
544
+ BCJ2 filter in Ultra (x9) mode and BCJ filter in other modes.
545
+ If f=FilterID if specified, 7-zip uses specified filter for all files.
546
+ FilterID can be: Delta:{N}, BCJ, BCJ2, ARM64, ARM, ARMT, RISCV, IA64, PPC, SPARC.
547
+ </P>
548
+ </DD>
549
+
550
+ <DT><A name="HeaderCompress"></A>hc=[off | on]</DT>
551
+ <DD>
552
+ <P> Enables or disables archive header compressing. The default mode is hc=on.
553
+ If archive header compressing is enabled, the archive header will
554
+ be compressed with LZMA method.
555
+ </P>
556
+ </DD>
557
+ <DT><A name="HeaderEncrypt"></A>he=[off | on]</DT>
558
+ <DD>
559
+ <P> Enables or disables archive header encryption.</P>
560
+ <P> The default mode is he=off (archive header encryption is disabled).</P>
561
+ <P> The archive header contains metadata of the stored files (file names, file sizes,
562
+ timestamps, attributes) and other additional archive metadata information.</P>
563
+ <P> If archive header encryption option is disabled (he=off),
564
+ the archive header will be stored without encryption.
565
+ If archive header encryption option is enabled (he=on),
566
+ and a password is specified (-p switch on the command line or
567
+ the password entered in the "Password" field in the GUI),
568
+ then both file data and headers will be encrypted.</P>
569
+ </P>
570
+ </DD>
571
+
572
+ <DT><A name="Bind"></A>b{C1}[s{S1}]:{C2}[s{S2}]</DT>
573
+ <DD>
574
+ <P> Binds output stream S1 in coder C1 with input stream S2 in coder C2.
575
+ If stream number is not specified, stream with number 0 will be used.
576
+ </P>
577
+ <P> Usally coder has one input stream and
578
+ one output stream. In 7z some coders can have multiple input and output streams.</P>
579
+
580
+ <P>For example, <A class="parameter" href="#BCJ2">BCJ2</A> encoder has one
581
+ input stream and four output streams.</P>
582
+ </DD>
583
+
584
+ <DT><A name="MultiThread"></A>mt=[off | on | {N}]</DT>
585
+ <DD>
586
+ <P>Sets multithread mode. If you have a multiprocessor or multicore system,
587
+ you can get a increase with this switch.
588
+ 7-Zip supports multithread mode only for LZMA / LZMA2 compression and
589
+ BZip2 compression / decompression. If you specify {N}, for example mt=4,
590
+ 7-Zip tries to use 4 threads. LZMA compression uses only 2 threads.
591
+ </P>
592
+ </DD>
593
+
594
+ <DT><A name="MethodID"></A>{N}={MethodID}[:param1][:param2] ... [:paramN]</DT>
595
+ <DD>
596
+ <P>Sets compression method. You can use any number of methods.
597
+ The default method is LZMA2.</P>
598
+
599
+ <P>{N} sets the index number of method in methods chain.
600
+ Numbers must begin from 0. Methods that have smaller numbers will be used
601
+ before others.</P>
602
+
603
+
604
+ <P>Parameters must be in one of the following forms:</P>
605
+ <UL>
606
+ <LI>{ParamName}={ParamValue}.
607
+ <LI>{ParamName}{ParamValue}, if {ParamValue}
608
+ is number and {ParamName} doesn't contain numbers.
609
+ </UL>
610
+
611
+ <P>Supported methods:</P>
612
+ <TABLE>
613
+ <TR> <TH width="60">MethodID</TH> <TH>Description</TH> </TR>
614
+ <TR> <TD><A class="parameter" href="#LZMA">LZMA</A></TD> <TD>LZ-based algorithm</TD> </TR>
615
+ <TR> <TD><A class="parameter" href="#LZMA2">LZMA2</A></TD> <TD>LZMA-based algorithm</TD> </TR>
616
+ <TR> <TD><A class="parameter" href="#PPMd">PPMd</A></TD> <TD>Dmitry Shkarin's PPMdH with small changes</TD> </TR>
617
+ <TR> <TD>BZip2</TD> <TD>BWT algorithm</TD> </TR>
618
+ <TR> <TD>Deflate</TD> <TD>LZ+Huffman</TD> </TR>
619
+ <TR> <TD>Copy</TD> <TD>No compression</TD> </TR>
620
+ </TABLE>
621
+
622
+ <P>Supported filters:</P>
623
+ <TABLE>
624
+ <TR> <TH width="60">MethodID</TH> <TH>Description</TH> </TR>
625
+ <TR> <TD><A class="parameter" href="#Delta">Delta</A></TD> <TD>Delta filter</TD> </TR>
626
+ <TR> <TD>BCJ</TD> <TD>converter for x86 executables</TD> </TR>
627
+ <TR> <TD><A class="parameter" href="#BCJ2">BCJ2</A></TD> <TD>converter for x86 executables (version 2)</TD> </TR>
628
+ <TR> <TD>ARM64</TD> <TD>converter for ARM64 (little endian) executables</TD> </TR>
629
+ <TR> <TD>ARM</TD> <TD>converter for ARM (little endian) executables</TD> </TR>
630
+ <TR> <TD>ARMT</TD> <TD>converter for ARM Thumb (little endian) executables</TD> </TR>
631
+ <TR> <TD>RISCV</TD> <TD>converter for RISC-V executables</TD> </TR>
632
+ <TR> <TD>IA64</TD> <TD>converter for IA-64 executables</TD> </TR>
633
+ <TR> <TD>PPC</TD> <TD>converter for PowerPC (big endian) executables</TD> </TR>
634
+ <TR> <TD>SPARC</TD> <TD>converter for SPARC executables</TD> </TR>
635
+ </TABLE>
636
+ <P>Filters increase the compression ratio for some types of files. Filters
637
+ must be used with one of the compression method (for example, BCJ + LZMA).</P>
638
+ </DD>
639
+
640
+ <H4><A name="LZMA"></A>LZMA</H4>
641
+ <P> LZMA is an algorithm based on Lempel-Ziv algorithm.
642
+ It provides very fast decompression (about 10-20 times faster than compression).
643
+ Memory requirements for compression and decompression also are different (see
644
+ <A class="parameter" href="#DictionarySize">d={Size}[b|k|m|g]</A> switch for details).</P>
645
+
646
+ <TABLE>
647
+ <TR> <TH width="80">Parameter</TH> <TH align="center">Default</TH> <TH>Description</TH> </TR>
648
+
649
+ <TR> <TD><A class="parameter" href="#LZMAMode">a=[0|1]</A></TD>
650
+ <TD align="center">1</TD> <TD>Sets compressing mode</TD> </TR>
651
+ <TR> <TD><A class="parameter" href="#DictionarySize">d={Size}[b|k|m|g]</A></TD>
652
+ <TD align="center">25</TD> <TD>Sets Dictionary size</TD> </TR>
653
+ <TR> <TD><A class="parameter" href="#MatchFinder">mf={MF_ID}</A></TD>
654
+ <TD align="center">bt4</TD> <TD>Sets Match Finder</TD> </TR>
655
+ <TR> <TD><A class="parameter" href="#FastBytes">fb={N}</A></TD>
656
+ <TD align="center">32</TD> <TD>Sets number of Fast Bytes</TD></TR>
657
+ <TR> <TD><A class="parameter" href="#MatchFinderCycles">mc={N}</A></TD>
658
+ <TD align="center">32</TD><TD>Sets Number of Cycles for Match Finder</TD> </TR>
659
+ <TR> <TD><A class="parameter" href="#LitContext">lc={N}</A></TD>
660
+ <TD align="center">3</TD> <TD>Sets number of Literal Context bits - [0, 8]</TD></TR>
661
+ <TR> <TD><A class="parameter" href="#LitPos">lp={N}</A></TD>
662
+ <TD align="center">0</TD> <TD>Sets number of Literal Pos bits - [0, 4]</TD></TR>
663
+ <TR> <TD><A class="parameter" href="#PosBits">pb={N}</A></TD>
664
+ <TD align="center">2</TD> <TD>Set number of Pos Bits - [0, 4]</TD></TR>
665
+ </TABLE>
666
+
667
+
668
+ <DL>
669
+ <DT><A name="#LZMAMode"></A>a=[0|1]</DT>
670
+ <DD>
671
+ <P> Sets compression mode: 0 = fast, 1 = normal.
672
+ Default value is 1.</P>
673
+ </DD>
674
+ <DT><A name="DictionarySize"></A>d={Size}[b|k|m|g]</DT>
675
+ <DD>
676
+ <P> Sets Dictionary size for LZMA. You must specify the size in bytes, kilobytes, or megabytes.
677
+ The maximum value for dictionary size is 3840 MiB (4 GB), but 32-bit version of 7-Zip allows
678
+ to specify up to 128 MB dictionary.
679
+ Default dictionary size values for LZMA in 64-bit 7-Zip are
680
+ 25 (32 MB) in normal mode (-mx=5),
681
+ 27 (128 MB) in maximum mode (-mx=7)
682
+ and 28 (256 MB) in ultra mode (-mx=9).
683
+ The default dictionary size for 32-bit 7-Zip does not exceed 64 MB.
684
+ If you do not specify any symbol from the set [b|k|m|g], the
685
+ dictionary size will be calculated as DictionarySize = 2^Size bytes.
686
+ For decompressing a file compressed by LZMA method with dictionary size N, you need
687
+ about N bytes of memory (RAM) available.
688
+ </P>
689
+ </DD>
690
+ <DT><A name="MatchFinder"></A>mf={MF_ID}</DT>
691
+ <DD>
692
+ <P> Sets Match Finder for LZMA. Default method is bt4.
693
+ Algorithms from hc* group don't provide a good compression ratio,
694
+ but they often work pretty fast in combination with fast mode (a=0).
695
+ Memory requirements depend on dictionary size (parameter "d" in table below).
696
+ </P>
697
+ <TABLE>
698
+ <TR> <TH>MF_ID</TH> <TH class="cc">Dictionary</TH> <TH class="cc" colspan = 2>Memory Usage</TH> <TH class="cc" colspan = 2>Description</TH> </TR>
699
+ <TR> <TD class="cc">bt2</TD> <TD></TD> <TD align="right"> 9.5 * d</TD> <TD class="cc" rowspan=6> + 4 MB</TD> <TD class="cc" rowspan=4>Binary Tree</TD> <TD>2 bytes hashing</TD> </TR>
700
+ <TR> <TD class="cc">bt3</TD> <TD></TD> <TD align="right">11.5 * d</TD> <TD>3 bytes hashing</TD> </TR>
701
+ <TR> <TD class="cc" rowspan=2>bt4<BR>bt5</TD> <TD class="cc">64 KB ... 48 MB</TD> <TD align="right">11.5 * d</TD> <TD class="cc" rowspan=6>4/5 bytes hashing</TD> </TR>
702
+ <TR> <TD class="cc">64 MB ... 1024 MB</TD> <TD align="right">10.5 * d</TD> </TR>
703
+ <TR> <TD class="cc" rowspan=2>hc4<BR>hc5</TD> <TD class="cc">64 KB ... 48 MB</TD> <TD align="right"> 7.5 * d</TD> <TD class="cc" rowspan=2>Hash Chain </TD></TR>
704
+ <TR> <TD class="cc">64 MB ... 1024 MB</TD> <TD align="right"> 6.5 * d</TD> </TR>
705
+ </TABLE>
706
+ <P>Note: Your operation system also needs some amount of physical memory for internal purposes.
707
+ So keep at least 32MB of physical memory unused.</P>
708
+ </DD>
709
+
710
+ <DT><A name="FastBytes"></A>fb={N}</DT>
711
+ <DD>
712
+ <P>Sets number of fast bytes for LZMA. It can be in the range from 5 to 273.
713
+ The default value is 32 for normal mode and 64 for maximum and ultra modes.
714
+ Usually, a big number gives a little bit better
715
+ compression ratio and slower compression process.
716
+ </P>
717
+ </DD>
718
+ <DT><A name="MatchFinderCycles"></A>mc={N}</DT>
719
+ <DD>
720
+ <P>Sets number of cycles (passes) for match finder. It can be in range from 0 to 1000000000.
721
+ Default value is (16 + number_of_fast_bytes / 2) for BT* match finders and
722
+ (8 + number_of_fast_bytes / 4) for HC4 match finder.
723
+ If you specify mc=0, LZMA will use default value.
724
+ Usually, a big number gives a little bit better compression ratio and slower
725
+ compression process. For example, mf=HC4 and mc=10000 can provide almost the same
726
+ compression ratio as mf=BT4.</P>
727
+ </DD>
728
+ <DT><A name="LitContext"></A>lc={N}</DT>
729
+ <DD>
730
+ <P>Sets the number of literal context bits (high bits of previous literal).
731
+ It can be in range from 0 to 8.
732
+ Default value is 3. Sometimes lc=4 gives gain for big files.</P>
733
+ </DD>
734
+ <DT><A name="LitPos"></A>lp={N}</DT>
735
+ <DD>
736
+ <P>Sets the number of literal pos bits (low bits of current position for literals).
737
+ It can be in the range from 0 to 4.
738
+ The default value is 0. The lp switch is intended for periodical data when the
739
+ period is equal to 2^value (where lp=value). For example, for 32-bit (4 bytes)
740
+ periodical data you can use lp=2. Often it's better to set lc=0,
741
+ if you change lp switch.</P>
742
+ </DD>
743
+ <DT><A name="PosBits"></A>pb={N}</DT>
744
+ <DD>
745
+ <P>Sets the number of pos bits (low bits of current position).
746
+ It can be in the range from 0 to 4.
747
+ The default value is 2. The pb switch is intended for periodical data when the
748
+ period is equal 2^value (where lp=value). </P>
749
+ </DD>
750
+
751
+ </DL>
752
+
753
+ <H4><A name="LZMA2"></A>LZMA2</H4>
754
+ <P>LZMA2 is modified version of LZMA. it provides the following advantages over LZMA:</P>
755
+ <UL>
756
+ <LI>Better compression ratio for data than can't be compressed. LZMA2 can store such
757
+ blocks of data in uncompressed form. Also it decompresses such data faster.
758
+ <LI>Better multithreading support. If you compress big file, LZMA2 can split
759
+ that file to chunks and compress these chunks in multiple threads.
760
+ </UL>
761
+
762
+ <TABLE>
763
+ <TR> <TH width="80">Parameter</TH> <TH align="center">Default</TH> <TH>Description</TH> </TR>
764
+
765
+ <TR> <TD><A class="parameter" href="#ChunkSize">c={Size}[b|k|m|g]</A></TD>
766
+ <TD align="center">dictSize * 4</TD> <TD>Sets Chunk size</TD> </TR>
767
+ </TABLE>
768
+
769
+ <P>If you don't specify ChunkSize, default ChunkSize is caluclated by the formula:</P>
770
+ <PRE class="example">
771
+ ChunkSize = max(DictionarySize, min(256M, max(1M, DictionarySize * 4)))
772
+ </PRE>
773
+
774
+ <P>LZMA2 also supports all LZMA parameters, but lp+lc cannot be larger than 4.</P>
775
+
776
+ <P>LZMA2 uses: 1 thread for each chunk in x1 and x3 modes; and
777
+ 2 threads for each chunk in x5, x7 and x9 modes.
778
+ If LZMA2 is set to use only such number of threads required for one chunk,
779
+ it doesn't split stream to chunks. So you can get different compression
780
+ ratio for different number of threads. You can get the best compression
781
+ ratio, when you use 1 or 2 threads.</P>
782
+
783
+ <H4><A name="PPMd"></A>PPMd</H4>
784
+ <P> PPMd is a PPM-based algorithm. This algorithm is mostly based
785
+ on Dmitry Shkarin's PPMdH source code. PPMd provides very good compression ratio for
786
+ plain text files. There is no difference between compression speed and
787
+ decompression speed. Memory requirements for compression and decompression
788
+ also are the same.</P>
789
+ <TABLE>
790
+ <TR> <TH width="80">Parameter</TH> <TH align="center">Default</TH> <TH>Description</TH> </TR>
791
+ <TR> <TD><A class="parameter" href="#MemorySize">mem={Size}[b|k|m|g]</A></TD>
792
+ <TD align="center">24</TD> <TD>Sets size of used memory for PPMd.</TD> </TR>
793
+ <TR> <TD><A class="parameter" href="#Order">o={Size}</A></TD>
794
+ <TD align="center">6</TD> <TD>Sets model order for PPMd.</TD> </TR>
795
+ </TABLE>
796
+ <DL>
797
+ <DT><A name="MemorySize"></A>mem={Size}[b|k|m|g]</DT>
798
+ <DD>
799
+ <P> Sets the size of memory used for PPMd. You must specify the size in bytes, kilobytes, or megabytes.
800
+ The maximum value is 2GB = 2^31 bytes. The default value
801
+ is 24 (16MB). If you do not specify any symbol from the set [b|k|m|g], the
802
+ memory size will be calculated as (2^Size) bytes. PPMd uses the same
803
+ amount of memory for compression and decompression.</P>
804
+ </DD>
805
+
806
+ <DT><A name="Order"></A>o={Size}</DT>
807
+ <DD>
808
+ <P>Sets the model order for PPMd. The size must be in the range [2,32]. The default value is 6.</P>
809
+ </DD>
810
+ </DL>
811
+
812
+ <H4><A name="BCJ2"></A>BCJ2</H4>
813
+ <P>BCJ2 is a Branch converter for 32-bit/64-bit x86 executables (version 2).
814
+ It converts some branch instructions for increasing further compression.</P>
815
+ <P>A BCJ2 encoder has one input stream and four output streams:</P>
816
+ <UL>
817
+ <LI>s0: main stream. It requires further compression.</LI>
818
+ <LI>s1: stream for converted CALL values. It requires further compression.</LI>
819
+ <LI>s2: stream for converted JUMP values. It requires further compression.</LI>
820
+ <LI>s3: service stream. It is already compressed.</LI>
821
+ </UL>
822
+ <P>If LZMA is used, the size of the dictionary for streams
823
+ s1 and s2 can be much smaller (512 KB is enough for most cases)
824
+ than the dictionary size for stream s0.</P>
825
+
826
+ <P><B>Parameters:</B><P>
827
+ <DL>
828
+ <DT></A>d={Size}[b|k|m|g]</DT>
829
+ <DD>
830
+ <P> Sets section size for BCJ2 filter. Default section size is 240 MB.
831
+ If you do not specify any symbol from the set [b|k|m|g], the
832
+ section size will be calculated as SectionSize = 2^Size bytes.
833
+ This parameter doesn't affect memory consumption.
834
+ Compression ratio is better, if the section size is equal
835
+ or slightly larger than size of largest executable section in file.
836
+ Example: use f=BCJ2:d9M, if largest executable section in all files is 9 MB.
837
+ </P>
838
+ </DD>
839
+ </DL>
840
+
841
+ <P>Note: If BCJ2 filter is used to compress big files, 7-Zip can use additional
842
+ temp files during compression process to store temporary data for 3
843
+ additional streams: s1, s2, s3.
844
+ 7-Zip doesn't use temp files for largest main stream (s0), because 7-zip writes
845
+ compressed data of stream s0 to archive directly.
846
+ 7-Zip by default compresses the data from streams s1 and s2 with LZMA method.
847
+ So the sizes of temp files for corresponding compressed streams are not big in most cases.
848
+ 7-Zip uses temp file for compressed data stream (s1,s2 op s3), if size of such
849
+ compressed stream is larger than predefined limit:
850
+ 16 MiB in 32-bit version or
851
+ 4 GiB in 64-bit version.
852
+ 7-Zip creates such temp files in system TEMP directory.
853
+ </P>
854
+
855
+ </P>
856
+
857
+
858
+ <H4><A name="Delta"></A>Delta</H4>
859
+ <P>It's possible to set delta offset in bytes. For example, to compress 16-bit stereo
860
+ WAV files, you can set "0=Delta:4". Default delta offset is 1.</P>
861
+ </DL>
862
+
863
+ <H2><A name="XZ"></A>XZ</H2>
864
+
865
+ <P>XZ supports only LZMA2 codec now. The switches are similar to switches for 7z format.</P>
866
+
867
+ <TABLE>
868
+ <TR>
869
+ <TH width="80"> Parameter </TH>
870
+ <TH align="center"> Default </TH>
871
+ <TH> Description </TH>
872
+ </TR>
873
+ <TR> <TD> <A class="parameter" > x=[1 | 3 | 5 | 7 | 9 ] </A> </TD> <TD align="center"> 5 </TD> <TD> Sets level of compression </TD> </TR>
874
+ <TR> <TD> <A class="parameter" > f=FilterID </A> </TD> <TD align="center"> </TD> <TD> Sets compression filter. FilterID: Delta:{N}, BCJ, ARM64, ARM, ARMT, RISCV, IA64, PPC, SPARC </TD> </TR>
875
+ <TR> <TD> <A class="parameter" > {N}={MethodID}[:param1][:param2][..]</A></TD> <TD align="center"> LZMA2 </TD> <TD> Sets compression method: LZMA2:[param1]:[param2]:[...] </TD> </TR>
876
+ <TR> <TD> <A class="parameter" > mt=[off | on | {N}] </A> </TD> <TD align="center"> on </TD> <TD> Sets multithreading mode </TD> </TR>
877
+ <TR> <TD> <A class="parameter" href="#xz_solid"> s=[off | on | [{N}b | {N}k | {N}m | {N}g | {N}t]] </A> </TD> <TD align="center"> off </TD> <TD> Sets solid mode. </TD> </TR>
878
+ </TABLE>
879
+
880
+ <DT><A name="xz_solid"></A>s=[off | on | [{N}b | {N}k | {N}m | {N}g | {N}t]]</DT>
881
+ <DD>
882
+ <P> Enables or disables solid mode. The default mode is s=off.
883
+ In solid mode, there is only one block per file or stream.
884
+ </P>
885
+
886
+ <TABLE>
887
+ <TR> <TD>{N}b | {N}k | {N}m | {N}g</TD> <TD>Set a limit for the total size of a solid block in bytes</TD> </TR>
888
+ </TABLE>
889
+
890
+ <P>If size of solid block is not specified,
891
+ the default value of solid block size will be calculated,
892
+ The default solid block size depends on the dictionary size.
893
+ The default dictionary size depends on the compression level.</P>
894
+ <P>The default solid block size is caluclated by the formula:</P>
895
+ <PRE class="example">
896
+ SolidBlockSize_xz = max(DictionarySize, min(256M, max(1M, DictionarySize * 4)))
897
+ </PRE>
898
+
899
+
900
+ <TABLE>
901
+ <TR> <TH width="150">dictionary_size</TH> <TH>Default solid block size</TH> </TR>
902
+ <TR> <TD> smaller than 256 KB</TD> <TD> 1 MB</TD> </TR>
903
+ <TR> <TD> 256 KB - 64 MB </TD> <TD> dictionary_size * 4</TD> </TR>
904
+ <TR> <TD> 64 MB - 256 MB </TD> <TD> 256 MB </TD> </TR>
905
+ <TR> <TD> larger than 256 MB </TD> <TD> dictionary_size </TD> </TR>
906
+ </TABLE>
907
+
908
+ <P>block size must be equal or large than dictionary size.</P>
909
+
910
+ <P>If you use multiple blocks:</P>
911
+ <UL>
912
+ <LI>the compression ratio with small blocks usually is worse.
913
+ <LI>blocks are independent. So losses in case of data damage is limited only to damaged blocks.
914
+ <LI>it's possible to extract some particular block of data faster.</LI></LI>
915
+ <LI>there is index record at the end of xz stream that contains information about position and size of each block.
916
+ </UL>
917
+
918
+ <P>Note: xz uses: 1 thread for each block in x1 and x3 modes; and 2 threads for each block in x5, x7 and x9 modes.
919
+ If xz is set to use only such number of threads required for one block, it doesn't split stream to blocks.
920
+ So you can get different compression ratio for different number of threads. You can get the best compression ratio,
921
+ when you use 1 thread (for x1 and x3 modes) or 2 threads (for x5, x7 and x9 modes).</P>
922
+
923
+ <P>Note: each xz block contains LZMA2 stream of data. And LZMA2 also can be divided to independent blocks (chunks).
924
+ The difference between xz blocks and LZMA2 blocks, that each xz block contains also checksum (crc or sha), and there is
925
+ index record at the end of xz stream that points to each xz block. 7-Zip by default uses xz blocks. But it's
926
+ possible to specify the mode when it will use one xz block, and multiple LZMA2 blocks instead.</P>
927
+
928
+ <P>Examples:</P>
929
+ <PRE class="example">
930
+ s=16m
931
+ </PRE>
932
+ <P>use 16 MB blocks.</P>
933
+ <BR>
934
+ <PRE class="example">
935
+ s
936
+ </PRE>
937
+ <P>use one solid xz block per file.</P>
938
+ <BR>
939
+
940
+ <PRE class="example">
941
+ s c16m
942
+ </PRE>
943
+ <P>use one solid xz block per file and 16 MiB LZMA2 blocks.</P>
944
+ </DD>
945
+
946
+
947
+ <H2><A name="WIM"></A>WIM</H2>
948
+
949
+ <TABLE>
950
+ <TR>
951
+ <TH width="160">Parameter</TH>
952
+ <TH align="center">Default</TH>
953
+ <TH>Description</TH> </TR>
954
+ <TR>
955
+ <TD><A class="parameter" href="#mim">im={ImageNumber}</A></TD>
956
+ <TD align="center"></TD>
957
+ <TD>Sets image number.</TD> </TR>
958
+ <TR>
959
+ <TD>is=[off | on]</TD>
960
+ <TD align="center">off</TD>
961
+ <TD>Show image number in paths.</TD> </TR>
962
+ <TR> <TD> <A class="parameter"> tm=[off | on] </A> </TD> <TD align="center"> on </TD> <TD> Stores last Modified timestamps for files. </TD> </TR>
963
+ <TR> <TD> <A class="parameter"> tc=[off | on] </A> </TD> <TD align="center"> off </TD> <TD> Stores Creation timestamps for files. </TD> </TR>
964
+ <TR> <TD> <A class="parameter"> ta=[off | on] </A> </TD> <TD align="center"> off </TD> <TD> Stores last Access timestamps for files. </TD> </TR>
965
+ </TABLE>
966
+
967
+ <P>If image number is specified, 7-Zip works only with that image inside WIM archive.
968
+ Other images will be not changed. By default 7-Zip doesn't show image number, if there is only one
969
+ image in WIM archive, or if image number is specified. But if the switch "is" specified,
970
+ 7-Zip shows image number.</P>
971
+
972
+
973
+ <H2><A name="tar"></A>Tar</H2>
974
+ <TABLE>
975
+ <TR>
976
+ <TH width="100"> Parameter </TH>
977
+ <TH align="center"> Default </TH>
978
+ <TH> Description </TH>
979
+ </TR>
980
+ <TR> <TD> <A class="parameter"> tm=[off | on] </A> </TD> <TD align="center"> on </TD> <TD> Stores last Modified timestamps for files. </TD> </TR>
981
+ <TR> <TD> <A class="parameter"> tc=[off | on] </A> </TD> <TD align="center"> off </TD> <TD> Stores Creation timestamps for files (for pax method). </TD> </TR>
982
+ <TR> <TD> <A class="parameter"> ta=[off | on] </A> </TD> <TD align="center"> off </TD> <TD> Stores last Access timestamps for files (for pax method). </TD> </TR>
983
+ <TR> <TD> <A class="parameter"> tp={N} </A> </TD> <TD align="center"> 1 </TD>
984
+ <TD> Sets timestamp precision: 0 - Windows (100 ns), 1 - Unix (1 sec), 3 - Linux (1 ns). </TD> </TR>
985
+ <TR>
986
+ <TD>m={MethodID}</TD>
987
+ <TD align="center">gnu</TD>
988
+ <TD>Sets a method: gnu, pax, posix.</TD> </TR>
989
+ </TABLE>
990
+
991
+
992
+
993
+ <H4>Examples</H4>
994
+
995
+ <PRE class="example">
996
+ 7z a archive.zip *.jpg -mx0
997
+ </PRE>
998
+
999
+ <P>adds <SPAN class="filename">*.jpg</SPAN> files to
1000
+ <SPAN class="filename">archive.zip</SPAN> archive without compression.</P>
1001
+
1002
+ <PRE class="example">
1003
+ 7z a archive.7z *.exe *.dll -m0=BCJ -m1=LZMA:d=21
1004
+ </PRE>
1005
+
1006
+ <P>adds <SPAN class="filename">*.exe</SPAN> and <SPAN class="filename">*.dll</SPAN>
1007
+ files to solid archive <SPAN class="filename">archive.7z</SPAN> using LZMA method with
1008
+ 2 MB dictionary and BCJ filter.</P>
1009
+
1010
+ <PRE class="example">
1011
+ 7z a archive.7z a.tar -mf=BCJ2 -mx
1012
+ </PRE>
1013
+
1014
+ <P>adds <SPAN class="filename">a.tar</SPAN>
1015
+ files to archive <SPAN class="filename">archive.7z</SPAN> using BCJ2 filter.</P>
1016
+
1017
+ <PRE class="example">
1018
+ 7z a archive.7z *.wav -mf=Delta:4
1019
+ </PRE>
1020
+
1021
+ <P>adds <SPAN class="filename">*.wav</SPAN>
1022
+ files to archive <SPAN class="filename">archive.7z</SPAN> using Delta:4 filter.</P>
1023
+
1024
+ <PRE class="example">
1025
+ 7z a a.7z *.exe *.dll -m0=BCJ2 -m1=LZMA:d25 -m2=LZMA:d19 -m3=LZMA:d19 -mb0:1 -mb0s1:2 -mb0s2:3
1026
+ </PRE>
1027
+
1028
+ <P>adds <SPAN class="filename">*.exe</SPAN> and <SPAN class="filename">*.dll</SPAN>
1029
+ files to archive <SPAN class="filename">a.7z</SPAN> using BCJ2 filter,
1030
+ LZMA with 32 MB dictionary for main output stream (s0),
1031
+ and LZMA with 512 KB dictionary for s1 and s2 output streams of BCJ2.</P>
1032
+
1033
+ <PRE class="example">
1034
+ 7z a archive.7z *.txt -m0=PPMd
1035
+ </PRE>
1036
+
1037
+ <P>adds <SPAN class="filename">*.txt</SPAN> files to archive
1038
+ <SPAN class="filename">archive.7z</SPAN> using PPMd method.</P>
1039
+
1040
+
1041
+ <PRE class="example">
1042
+ 7z a a.tar.xz a.tar -mf=bcj -mx
1043
+ </PRE>
1044
+
1045
+ <P>adds <SPAN class="filename">a.tar</SPAN>
1046
+ files to archive <SPAN class="filename">a.tar.xz</SPAN> using BCJ filter.</P>
1047
+
1048
+
1049
+ <H4>Commands that can be used with this switch</H4>
1050
+
1051
+ <P>
1052
+ <A href="../commands/add.htm">a (Add)</A>,
1053
+ <A href="../commands/hash.htm">h (Hash)</A>,
1054
+ <A href="../commands/delete.htm">d (Delete)</A>,
1055
+ <A href="../commands/rename.htm">rn (Rename)</A>,
1056
+ <A href="../commands/update.htm">u (Update)</A>
1057
+ </P>
1058
+
1059
+ <H4>See also</H4>
1060
+
1061
+ <P>
1062
+ <B>Switches:</B>
1063
+ <A href="type.htm">-t (set Type of archive)</A>,
1064
+ </P>
1065
+
1066
+ </BODY>
1067
+ </HTML>