NSData *data = ...;
NSData *compressed = [data brotliCompressed];
NSData *compressed = ...;
NSData *decompressed = [compressed brotliDecompressed];
Brotli is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'Brotli'
Karl von Randow, karl@xk72.com
This pod was inspired by the work of Matthew Cheok, https://github.com/matthewcheok/Brotli
Brotli is available under the MIT license. See the LICENSE file for more info. Brotli includes the official Brotli source code from https://github.com/google/brotli. That source code is covered by the official Brotli license, which is included in the LICENSE file.