Skip to content
/ ZstdKit Public
forked from luckymarmot/ZstdKit

An Objective-C and Swift library for Zstd (Zstandard) compression and decompression.

License

Notifications You must be signed in to change notification settings

fylfot/ZstdKit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZstdKit

An Objective-C and Swift library for Zstd (Zstandard) compression and decompression.

Installation

Via Cocoapods:

pod 'ZstdKit'

Usage

NSData category

// compression
[myData compressZstd];

// decompression
[myData decompressZstd];

Compressor class

Simple usage

// compression
[LMZstdCompressor compressedDataWithData:myData];

// decompression
[LMZstdCompressor decompressedDataWithData:myData];

Compression level

// compression
[LMZstdCompressor compressedDataWithData:myData compressionLevel:3];

Core Foundation API

CF_EXPORT CFDataRef LMCreateZstdCompressedData(const void* bytes, CFIndex length, int16_t compressionLevel);
CF_EXPORT CFDataRef LMCreateZstdDecompressedData(const void* bytes, CFIndex length);

License

The original Zstandard code is licensed under the BSD license. This code is licensed under the MIT license.

About

An Objective-C and Swift library for Zstd (Zstandard) compression and decompression.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 71.2%
  • C 22.8%
  • Ruby 6.0%