An Objective-C and Swift library for Zstd (Zstandard) compression and decompression.
Via Cocoapods:
pod 'ZstdKit'
// compression
[myData compressZstd];
// decompression
[myData decompressZstd];
Simple usage
// compression
[LMZstdCompressor compressedDataWithData:myData];
// decompression
[LMZstdCompressor decompressedDataWithData:myData];
Compression level
// compression
[LMZstdCompressor compressedDataWithData:myData compressionLevel:3];
CF_EXPORT CFDataRef LMCreateZstdCompressedData(const void* bytes, CFIndex length, int16_t compressionLevel);
CF_EXPORT CFDataRef LMCreateZstdDecompressedData(const void* bytes, CFIndex length);
The original Zstandard code is licensed under the BSD license. This code is licensed under the MIT license.