摘要: 原文地址:http://lxflfr.blog.163.com/blog/static/129119579200983004539908/zlib 是通用的压缩库,提供了一套 in-memory 压缩和解压函数,并能检测解压出来的数据的完整性(integrity)。zlib 也支持读写 gzip (.gz) 格式的文件。下面介绍两个最有用的函数——compress和uncompress。int compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen);compress函数将source缓冲区中的内容 阅读全文
posted @ 2012-12-09 19:36 ゞ追忆o0ゞ 阅读(1173) 评论(0) 推荐(0) 编辑