Advertisement
sophtwhere

NSData+zlibCompression.h

Oct 28th, 2013
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //
  2. //  NSData+zlibCompression.h
  3. //
  4. //  Created by Jonathan Annett on 9/10/13.
  5. //  Copyright (c) 2013 Sophtwhere. All rights reserved.
  6. //
  7.  
  8. #import <Foundation/Foundation.h>
  9.  
  10.  
  11. @interface NSData (zlibCompression)
  12.  
  13. -(NSData *)zlibInflate;
  14. -(NSData *)zlibDeflate;
  15. -(NSData *)gzipInflate;
  16. -(NSData *)gzipDeflate;
  17. -(NSData*) compress;
  18. -(NSData*) decompress;
  19.  
  20. -(NSString*) base64CompressedString;
  21. +(NSData*) dataFromBase64CompressedString:(NSString*) b64;
  22.  
  23. @end
  24.  
  25.  
  26. @interface NSDictionary (b64compressed)
  27.  
  28. -(NSString*) b64String;
  29. +(NSDictionary*) dictionaryWithB64String:(NSString*) b64String ;
  30.  
  31.  
  32. @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement