Swiftpack.co - awxkee/zstd.swift as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by awxkee.
awxkee/zstd.swift 1.0.1
Simple and powerful usage for ZStd compression in swift for iOS and macOS
⭐️ 3
🕓 1 year ago
iOS macOS
.package(url: "https://github.com/awxkee/zstd.swift.git", from: "1.0.1")

zstd-swift

Simple implementation of prebuilt facebook/zstd in swift

// Simple compress usage
let compressedData = try ZStd.compress(Data())

// Simple decompress usage
let decompressedData = try ZStd.decompress(zstdCompressedData)

// Compress decomression made by Streams API

try ZStd.compress(src: InputStream(), dst: OutputStream())
try ZStd.decompress(src: InputStream(), dst: OutputStream())

// or you may use prebuilt functions on top of the streams
let data: Data = try ZStd.decompress(src: InputStream()))
// etc..


GitHub

link
Stars: 3
Last commit: 30 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

Release 1.0.1
1 year ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics