![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据压缩
几百人在爱
这个作者很懒,什么都没留下…
展开
-
Zlib解压缩示例
先上代码,压缩包的文件结构解析: zip=unzOpen(resItem->filename); if(0==zip) return false; done=unzGoToFirstFile(zip); while(done==UNZ_OK) { unzGetCurrentFileInfo(zip, &file_info, szZipName, sizeof(szZip转载 2011-06-02 09:42:00 · 7726 阅读 · 1 评论 -
使用zzip和minizip解压缩文件
#include #include #include #include #include #include #ifdef _DEBUG#pragma comment( lib, "zlib_d.lib")#pragma comment( lib, "zzip_d.lib")#pragma comment( lib, "minizip_d.lib")#else#pragma comment( lib, "zlib.lib" )#pragma comment( lib, "zzip.lib" )#pragma转载 2011-05-18 18:44:00 · 5481 阅读 · 2 评论 -
zlib 压缩文件
<br />/*zlib 的z_stream结构*/typedef struct z_stream_s { Bytef *next_in; uInt avail_in; uLong total_in; Bytef *next_out; uInt avail_out; uLong total_out; char *msg; struct internal_转载 2011-05-20 16:22:00 · 1205 阅读 · 0 评论