No Description

AWSGZIP.h 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // GZIP.h
  3. //
  4. // Version 1.0.3
  5. //
  6. // Created by Nick Lockwood on 03/06/2012.
  7. // Copyright (C) 2012 Charcoal Design
  8. //
  9. // Distributed under the permissive zlib License
  10. // Get the latest version from here:
  11. //
  12. // https://github.com/nicklockwood/GZIP
  13. //
  14. // This software is provided 'as-is', without any express or implied
  15. // warranty. In no event will the authors be held liable for any damages
  16. // arising from the use of this software.
  17. //
  18. // Permission is granted to anyone to use this software for any purpose,
  19. // including commercial applications, and to alter it and redistribute it
  20. // freely, subject to the following restrictions:
  21. //
  22. // 1. The origin of this software must not be misrepresented; you must not
  23. // claim that you wrote the original software. If you use this software
  24. // in a product, an acknowledgment in the product documentation would be
  25. // appreciated but is not required.
  26. //
  27. // 2. Altered source versions must be plainly marked as such, and must not be
  28. // misrepresented as being the original software.
  29. //
  30. // 3. This notice may not be removed or altered from any source distribution.
  31. //
  32. #import <Foundation/Foundation.h>
  33. void awsgzip_loadGZIP(void);
  34. @interface NSData (AWSGZIP)
  35. - (NSData *)awsgzip_gzippedDataWithCompressionLevel:(float)level;
  36. - (NSData *)awsgzip_gzippedData;
  37. - (NSData *)awsgzip_gunzippedData;
  38. @end