Latest | 0.1.0 |
---|---|
Homepage | https://github.com/nobre84/heatshrink-objc |
License | MIT |
Platforms | ios 8.0 |
Authors |
Usage
RNHeatshrinkEncoder *encoder = [[RNHeatshrinkEncoder alloc] initWithWindowSize:8 andLookaheadSize:4];
NSData *testData = [@"ABCABCABCABCABCABC" dataUsingEncoding:NSUTF8StringEncoding];
NSData *encodedData = [encoder encodeData: testData];
RNHeatshrinkDecoder *decoder = [[RNHeatshrinkDecoder alloc] initWithWindowSize:8 andLookaheadSize:4];
NSData *decodedData = [decoder decodeData:encodedData];
expect(encodedData.length).to.beLessThan(testData.length);
expect(decodedData).to.equal(testData);
Requirements
Installation
heatshrink-objc is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod 'heatshrink-objc'
Author
nobre84, [email protected]
License
heatshrink-objc is available under the MIT license. See the LICENSE file for more info.
Latest podspec
{ "name": "heatshrink-objc", "version": "0.1.0", "summary": "Port of heatshrink - A data compression/decompression library for embedded/real-time systems.", "description": "Small library to easily integrate heatshrink in iOS apps or libraries. Can be consumed by ObjC or Swift targets. Just provide a NSData to encode/decode and get back a encoded/decoded NSData. TBD: streaming mode.", "homepage": "https://github.com/nobre84/heatshrink-objc", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "nobre84": "[email protected]" }, "source": { "git": "https://github.com/nobre84/heatshrink-objc.git", "tag": "0.1.0" }, "social_media_url": "https://twitter.com/nobre84", "platforms": { "ios": "8.0" }, "source_files": "heatshrink-objc/Classes/**/*" }
Sun, 07 May 2017 10:00:07 +0000