Skip to content

Port of heatshrink - A data compression/decompression library for embedded/real-time systems.

License

Notifications You must be signed in to change notification settings

nobre84/heatshrink-objc

Repository files navigation

heatshrink-objc

CI Status Version License Platform

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, nobre84@gmail.com

License

heatshrink-objc is available under the MIT license. See the LICENSE file for more info.

About

Port of heatshrink - A data compression/decompression library for embedded/real-time systems.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published