zlib的压缩与解压

http://zlibnet.codeplex.com/releases/view/629717

using ZLibNet;

string
str = "ccc"; byte [] bytes = System.Text.Encoding.UTF8.GetBytes(str); byte[] bytesCompress = ZLibNet.ZLibCompressor.Compress(bytes); byte[] bytesDecompress = ZLibNet.ZLibCompressor.DeCompress(bytesCompress); string strDecompress = System.Text.Encoding.UTF8.GetString(bytesDecompress); Console.WriteLine(strDecompress);

 

posted on 2017-06-30 20:57  万里驰骋  阅读(1263)  评论(0编辑  收藏  举报

导航