Compression and decompression of NSData.
Release Version | Release Notes |
---|---|
RELEASENOTES |
Compress and decompress a string:
NSData *data;
NSData *compressed;
NSData *decompressed;
NSString *s;
data = [@"VfL Bochum 1848" dataUsingEncoding:NSUTF8StringEncoding];
compressed = [data mulleZlibCompressedData];
decompressed = [compressed mulleZlibDecompressedData];
s = [NSString mulleStringWithData:decompressed
encoding:NSUTF8StringEncoding];
Adds the following compression and decompressions methods to NSData:
- (NSData *) mulleZlibCompressedDataWithCompressionLevel:(int) level;
- (NSData *) mulleZlibCompressedData;
- (NSData *) mulleZlibDecompressedData;
Use mulle-sde to add MulleZlib to your project:
mulle-sde add github:MulleWeb/MulleZlib
Use mulle-sde to build and install MulleZlib and all dependencies:
mulle-sde install --prefix /usr/local \
https://github.com//MulleZlib/archive/latest.tar.gz
Install the requirements:
Requirements | Description |
---|---|
zlib | |
MulleFoundationBase | ๐งฑ MulleFoundationBase amalgamates Foundations projects |
mulle-objc-list | ๐ Lists mulle-objc runtime information contained in executables. |
Download the latest tar or zip archive and unpack it.
Install MulleZlib into /usr/local
with cmake:
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DCMAKE_PREFIX_PATH=/usr/local \
-DCMAKE_BUILD_TYPE=Release &&
cmake --build build --config Release &&
cmake --install build --config Release
All platforms and compilers supported by mulle-c11.
Nat! for Mulle kybernetiK