Skip to content

iosdevzone/IDZGunzip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

NSData+IDZGunzip

A category on NSData that provides a simple way to gunzip gzipped data.

Using the category is very straight forward.

  1. Add libz.dylib to your project.
  2. Add NSData+IDZGunzip.m and NSData+IDZGunzip.h to your project.
  3. Then you do something like this:
#import "NSData+IDZGunzip.h"

...

// Assuming data holds valid gzipped data
NSError* error = nil;
// gunzip the data
NSData* gunzippedData = [data gunzip:&error];
if(!gunzippedData)
{
  // Handle error
}
else
{
  // Success use gunzippedData
}

About

A category on NSData for gunzipping data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published