Latest 1.0.0
Homepage https://github.com/luckymarmot/ZstdKit
License BSD
Platforms ios 8.0, osx 10.8, requires ARC
Authors

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.

Latest podspec

{
    "name": "ZstdKit",
    "version": "1.0.0",
    "license": {
        "type": "BSD",
        "file": "LICENSE"
    },
    "summary": "A Swift and Objective-C category for Zstd (Zstandard) compression.",
    "homepage": "https://github.com/luckymarmot/ZstdKit",
    "authors": {
        "Paw": "https://paw.cloud"
    },
    "source": {
        "git": "https://github.com/luckymarmot/ZstdKit.git",
        "tag": "1.0.0",
        "submodules": true
    },
    "platforms": {
        "ios": "8.0",
        "osx": "10.8"
    },
    "requires_arc": true,
    "source_files": [
        "ZstdKit/*.{h,m,c}",
        "Dependencies/zstd/lib/*.h",
        "Dependencies/zstd/lib/common/*.{c,h}",
        "Dependencies/zstd/lib/compress/*.{c,h}",
        "Dependencies/zstd/lib/decompress/*.{c,h}"
    ],
    "public_header_files": "ZstdKit/*.h",
    "pod_target_xcconfig": {
        "CLANG_WARN_COMMA": false,
        "CLANG_WARN_UNREACHABLE_CODE": false
    }
}

Pin It on Pinterest

Share This