Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iosdevzone/IDZGzip
A category on NSData for gzipping data.
https://github.com/iosdevzone/IDZGzip
Last synced: 3 months ago
JSON representation
A category on NSData for gzipping data.
- Host: GitHub
- URL: https://github.com/iosdevzone/IDZGzip
- Owner: iosdevzone
- Created: 2013-03-15T03:45:12.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-03-15T04:08:07.000Z (over 11 years ago)
- Last Synced: 2024-07-20T11:06:14.217Z (4 months ago)
- Language: Objective-C
- Size: 99.6 KB
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
NSData+IDZGzip
================A category on NSData that provides a simple way to gzip data.
Using the category is very straight forward.
1. Add libz.dylib to your project.
2. Add NSData+IDZGzip.m and NSData+IDZGzip.h to your project.
3. Then you do something like this:```objective-c
#import "NSData+IDZGzip.h"...
// Assuming data is an NSData holding data to be compressed.
NSError* error = nil;
// gzip the data
NSData* gzippedData = [data gzip:&error];
if(!gzippedData)
{
// Handle error
}
else
{
// Success use gunzippedData
}
```