Declared in | NSData+Compression.h |
---|
Adds compression and decompression messages to NSData. Methods extracted from source given at http://www.cocoadev.com/index.pl?NSData
Category
- (NSData *)zlibInflate
A data object containing a Zlib decompressed copy of the receivers contents.
Returns a data object containing a Zlib decompressed copy of the receivers contents.
NSData
+Compression.h
- (NSData *)zlibDeflate
A data object containing a Zlib compressed copy of the receivers contents.
Returns a data object containing a Zlib compressed copy of the receivers contents.
NSData
+Compression.h
- (int)zlibInflateInto:(NSMutableData *)buffer offset:(NSUInteger)offset
A pointer to an instance of NSMutableData
to popluated with the inflated data.
The offset at which to start reading from [self bytes]
The number of bytes consumed
Inflates the data into a given buffer starting at a certain offset.
NSData
+Compression.h
- (NSData *)gzipInflate
A data object containing a Gzip decompressed copy of the receivers contents.
Returns a data object containing a Gzip decompressed copy of the receivers contents.
NSData
+Compression.h
- (NSData *)gzipDeflate
A data object containing a Gzip compressed copy of the receivers contents.
Returns a data object containing a Gzip compressed copy of the receivers contents.
NSData
+Compression.h
Last updated: 2011-2-20