LFCGzipUtility Class Reference
Inherits from | NSObject |
Declared in | LFCGzipUtility.h |
Overview
@file LFCGzipUtility.h @author Clint Harris (www.clintharris.net)
Note: The code in this file has been commented so as to be compatible with Doxygen, a tool for automatically generating HTML-based documentation from source code. See http://www.doxygen.org for more info.
Tasks
-
+ gzipData:
Uses zlib to compress the given data. Note that gzip headers will be added so that the data can be easily decompressed using a tool like WinZip, gunzip, etc.
Note: Special thanks to Robbie Hanson of Deusty Designs for sharing sample code showing how deflateInit2() can be used to make zlib generate a compressed file with gzip headers: http://deusty.blogspot.com/2007/07/gzip-compressiondecompression.html
Class Methods
gzipData:
Uses zlib to compress the given data. Note that gzip headers will be added so that the data can be easily decompressed using a tool like WinZip, gunzip, etc.
Note: Special thanks to Robbie Hanson of Deusty Designs for sharing sample code showing how deflateInit2() can be used to make zlib generate a compressed file with gzip headers: http://deusty.blogspot.com/2007/07/gzip-compressiondecompression.html
+ (NSData *)gzipData:(NSData *)pUncompressedData
Parameters
- pUncompressedData
memory buffer of bytes to compress
Return Value
Compressed data as an NSData object
Declared In
LFCGzipUtility.h