sharpziplib压缩文件怎么用c++解压
发布网友
发布时间:2022-05-02 11:28
我来回答
共1个回答
热心网友
时间:2022-04-27 11:00
using ICSharpCode.SharpZipLib.BZip2;
public static Object UnZipObject(byte[] aoObject)
{
Object mObject = new Object();
byte[] bdictionary = Unzip(aoObject);
mObject = (Object)Deserialize(bdictionary);
return mObject;
}
public static byte[] ZipObject(Object aoObject)
{
byte[] bdictionary = Serialize(aoObject);
byte[] dictionary = Zip(bdictionary);
return dictionary;
}