zlib????????????
???????????? ???????[ 2014/1/17 15:33:04 ] ????????zlib ???????
????zlib?????????????????????????y??м???????????????????????????
????1.???????
?????????zlib?????????http://www.zlib.net/
????????????make??ɡ?make????????????libz.a.
????2.???
????????zlib.h??libz.a??ɡ????????zlib.h?????????Щ??????
??????????????“http://www.cppblog.com/woaidongmao/archive/2009/09/07/95495.html”?????zlib.h???????
????????zlib.h?У???????????Σ?????????????????????????Щ???????.????????Щ??????????????????????????Щ???????????.
?????????????????????:
????(1)int compress (Bytef *dest?? uLongf *destLen?? const Bytef *source?? uLong sourceLen);
?????????????????????壬 ??????? ?????????
????(2) int compress2 (Bytef *dest?? uLongf *destLen??const Bytef *source?? uLong sourceLen??int level);
?????????????????????????????????????????????????????????????(0-9)???????????????????????????????????????????: ???????????????????
????(3) uLong compressBound (uLong sourceLen);
??????????????????????. ????????????????????????? sourcelen ????????????ж?? ??????????????????£?????????????????????????????????????????????????С????????????????
????(4) int uncompress (Bytef *dest?? uLongf *destLen??const Bytef *source?? uLong sourceLen);
?????????(???????????:)
????(5) deflateInit() + deflate() + deflateEnd()
????3????????????????????????????÷??? example.c ?? test_deflate()????. ??? compress() ?????????????3??????????(???? zlib ?? compress.c ???)
????(6) inflateInit() + inflate() + inflateEnd()
??????(5)????????????????.
????(7) gz????????.????????*.gz????????????stdio???÷??????. ??????????????example.c ?? test_gzio() ????????easy.
????(8) ?????????e汾??????????.
???????:?????????compress() ??uncompress() ?????????????????????????.
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11