Godzippa! - GZip Compression / Decompression Category for NSData
Switch branches/tags
Nothing to show
Pull request Compare This branch is 30 commits behind mattt:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Godzippa.podspec
LICENSE
NSData+Godzippa.h
NSData+Godzippa.m
README.md

README.md

Godzippa!

gzip Compression / Decompression Category for NSData

Example Usage

NSData *originalData = [@"Look out! It's..." dataUsingEncoding:NSUTF8StringEncoding];
NSData *compressedData = [data dataByGZipCompressingWithError:nil];
NSData *decompressedData = [compressedData dataByGZipDecompressingDataWithError:nil];
NSLog(@"%@", [NSString stringWithUTF8String:[decompressedData bytes]]);

Requirements

  • zlib - In the "Link Binary With Libraries" Build Phase of your Target, add libz.dylib

Contact

Mattt Thompson

License

Godzippa! is available under the MIT license. See the LICENSE file for more info.