Skip to content

๐Ÿ˜ Zlib compression for mulle-objc

Notifications You must be signed in to change notification settings

MulleWeb/MulleZlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

58 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

MulleZlib

๐Ÿ˜ Zlib compression for mulle-objc

Compression and decompression of NSData.

Release Version Release Notes
Mulle kybernetiK tag Build Status RELEASENOTES

Example

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];

API

Adds the following compression and decompressions methods to NSData:

- (NSData *) mulleZlibCompressedDataWithCompressionLevel:(int) level;
- (NSData *) mulleZlibCompressedData;
- (NSData *) mulleZlibDecompressedData;

You are here

Overview

Add

Use mulle-sde to add MulleZlib to your project:

mulle-sde add github:MulleWeb/MulleZlib

Install

Install with mulle-sde

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

Manual Installation

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

Platforms and Compilers

All platforms and compilers supported by mulle-c11.

Author

Nat! for Mulle kybernetiK