Git.framework Reference Library

NSData(Compression) Category Reference

NSData(Compression) Category Reference

Declared in NSData+Compression.h

Overview

Adds compression and decompression messages to NSData. Methods extracted from source given at http://www.cocoadev.com/index.pl?NSDataCategory

Tasks

Instance Methods

zlibInflate

- (NSData *)zlibInflate
Return Value

A data object containing a Zlib decompressed copy of the receivers contents.

Discussion

Returns a data object containing a Zlib decompressed copy of the receivers contents.

Declared In
NSData+Compression.h

zlibDeflate

- (NSData *)zlibDeflate
Return Value

A data object containing a Zlib compressed copy of the receivers contents.

Discussion

Returns a data object containing a Zlib compressed copy of the receivers contents.

Declared In
NSData+Compression.h

zlibInflateInto:offset:

- (int)zlibInflateInto:(NSMutableData *)buffer offset:(NSUInteger)offset
Parameters
buffer

A pointer to an instance of NSMutableData to popluated with the inflated data.

offset

The offset at which to start reading from [self bytes]

Return Value

The number of bytes consumed

Discussion

Inflates the data into a given buffer starting at a certain offset.

Declared In
NSData+Compression.h

gzipInflate

- (NSData *)gzipInflate
Return Value

A data object containing a Gzip decompressed copy of the receivers contents.

Discussion

Returns a data object containing a Gzip decompressed copy of the receivers contents.

Declared In
NSData+Compression.h

gzipDeflate

- (NSData *)gzipDeflate
Return Value

A data object containing a Gzip compressed copy of the receivers contents.

Discussion

Returns a data object containing a Gzip compressed copy of the receivers contents.

Declared In
NSData+Compression.h

Last updated: 2011-2-20