{"version":"1.0","url":"https://devdevdev.hatenablog.com/entry/2014/11/27/135404","title":"\u3010iOS/Objective-c\u3011Gzip\u5727\u7e2e/\u89e3\u51cd","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdevdevdev.hatenablog.com%2Fentry%2F2014%2F11%2F27%2F135404\" title=\"\u3010iOS/Objective-c\u3011Gzip\u5727\u7e2e/\u89e3\u51cd - \u3075\u308b\u3059\u305f\u3063\u304f\u3048\u3093\u3058\u306b\u3042\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/devdevdev/","blog_url":"https://devdevdev.hatenablog.com/","categories":["iOS","Objective-c"],"provider_name":"Hatena Blog","type":"rich","author_name":"devdevdev","image_url":null,"published":"2014-11-27 13:54:04","description":"\u3046\u3093\u3001\u305d\u3093\u3060\u3051\u3002 libz.dylib\u3092\u8ffd\u52a0\u3057\u3066\u306d\u3002 #import <zlib.h> + (NSData *)compressByGzip:(NSData *)source { if (source.length == 0) return nil; z_stream stream = [self initializedStreamBySource:source]; if (deflateInit2(&stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, 31, 8, Z_DEFAULT_STRATEGY) != Z_OK) return nil; NSMuta\u2026","height":"190","blog_title":"\u3075\u308b\u3059\u305f\u3063\u304f\u3048\u3093\u3058\u306b\u3042\u306e\u65e5\u8a18","width":"100%","provider_url":"https://hatena.blog"}