Closed GoogleCodeExporter closed 8 years ago
Hi yand,
example3 doesn't compress to .zip files, it outputs raw zlib-style streams
which can't be opened by WinZip/WinRAR/7zip (as far as I know) because zlib
streams aren't archives. example2 outputs a test .zip file with a bunch of text
files that can be opened by KDE Dolphin, WinZip, 7zip, etc.
Original comment by richge...@gmail.com
on 7 Aug 2013 at 9:32
hi,richge
thanks for your reply. another question,i want to know how to modify source
miniz.c to make it support compress the folder.
BTW,can you give some information about the compress alogorithm?(such as
function tdefl_compress_normal),it is diffcult to understand your alogrithm by
miniz.c
Original comment by yand...@gmail.com
on 15 Aug 2013 at 8:41
Hi yand789,
The algorithm is described here:
http://en.wikipedia.org/wiki/DEFLATE
Also Google for "RFC 1950".
To compress a folder, you would need to find the files somehow (using
FindFiles() under Win32, etc.) and compress each file individually using miniz.
miniz.c itself only handles the low-level stuff.
Regards,
-Rich
Original comment by richge...@gmail.com
on 13 Oct 2013 at 5:30
Original issue reported on code.google.com by
yand...@gmail.com
on 7 Aug 2013 at 8:39