BZIP2,一种基于Burrows-Wheeler算法的压缩格式,是Unix和Linux系统中使用的文件压缩工具。 它使用 BZIP2 压缩算法高效地减小文件大小,通常生成带有 .bz2 扩展名的较小文件。 它因其高压缩效率而备受青睐,常用于软件分发和数据归档。
BZIP2 设计用于压缩单个文件,并不作为文件归档器服务,文件归档器是一种用于将多个文件和目录组合成一个归档文件的软件工具。BZIP2 特别善于压缩文本数据,并且解压速度相对较快。
using IronZip;
// Create an empty BZIP2
using (var archive = new IronBZip2Archive())
{
// Add a text file to the BZIP2
archive.Add("./assets/sample.txt");
// Export the BZIP2 file
archive.SaveAs("output.txt.bz2");
}
Imports IronZip
' Create an empty BZIP2
Using archive = New IronBZip2Archive()
' Add a text file to the BZIP2
archive.Add("./assets/sample.txt")
' Export the BZIP2 file
archive.SaveAs("output.txt.bz2")
End UsingImports IronZip
' Create an empty BZIP2
Using archive = New IronBZip2Archive()
' Add a text file to the BZIP2
archive.Add("./assets/sample.txt")
' Export the BZIP2 file
archive.SaveAs("output.txt.bz2")
End UsingBZIP2,一种基于Burrows-Wheeler算法的压缩格式,是Unix和Linux系统中使用的文件压缩工具。 它使用 BZIP2 压缩算法高效地减小文件大小,通常生成带有 .bz2 扩展名的较小文件。 它因其高压缩效率而备受青睐,常用于软件分发和数据归档。
BZIP2 设计用于压缩单个文件,并不作为文件归档器服务,文件归档器是一种用于将多个文件和目录组合成一个归档文件的软件工具。BZIP2 特别善于压缩文本数据,并且解压速度相对较快。
NuGet 下载量 25,625|版本:2026.11刚刚发布