日期:2014-05-18  浏览次数:20893 次

有没有人用过7z的接口的,那个LZMA的几个参数改怎么填?
System.Console.WriteLine("\nUsage: LZMA <e|d> [<switches>...] inputFile outputFile\n" +
" e: encode file\n" +
" d: decode file\n" +
" b: Benchmark\n" +
"<Switches>\n" +
// " -a{N}: set compression mode - [0, 1], default: 1 (max)\n" +
" -d{N}: set dictionary - [0, 29], default: 23 (8MB)\n" +
" -fb{N}: set number of fast bytes - [5, 273], default: 128\n" +
" -lc{N}: set number of literal context bits - [0, 8], default: 3\n" +
" -lp{N}: set number of literal pos bits - [0, 4], default: 0\n" +
" -pb{N}: set number of pos bits - [0, 4], default: 2\n" +
" -mf{MF_ID}: set Match Finder: [bt2, bt4], default: bt4\n" +
" -eos: write End Of Stream marker\n"
// + " -si: read data from stdin\n"
// + " -so: write data to stdout\n"
);
这是它的提示, Usage: LZMA <e|d> [<switches>...] inputFile outputFile 它说是这样的格式。弄了一天,没弄明白这几个参数该怎么填。我感觉的智商被毁了。

------解决方案--------------------
http://topic.csdn.net/u/20120519/03/3179694f-a8c5-4455-b8e1-0113e5b6a3a2.html

怪蜀黍我刚刚写了一个简单的7ZIP用法演示程序,欢迎下载试用。

用法超级简单: ZIP(INPUT,OUTPUT) 或者 UNZIP(INPUT,OUTPUT)