Skip to content

iosdevzone/IDZGzip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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:
#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
}

About

A category on NSData for gzipping data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published