Is there a class that allows to compress data with zlib, or the only possibility is to use directly zlib.dylib?
Thank you. It contains the code that I actually need. I don't see the part to save the data in a file, but that is not difficult to write.
kiamlaluno
2009-12-17 22:49:01
+2
A:
http://www.cocoadev.com/index.pl?NSDataCategory Here is easy to use NSData category implementation. Usage:
NSData* compressed = [myData zlibDeflate];
NSData* originalData = [compressed zlibInflate];
vaddieg
2009-12-18 00:30:33
The code I found in the link you reported is more complete, as it includes also the part to calculate the CRC32 checksum.
kiamlaluno
2009-12-18 02:29:03