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
🕓 49 weeks ago
iOS macOS
.package(url: "https://github.com/awxkee/zstd.swift.git", from: "1.0.1")


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..


Stars: 3
Last commit: 5 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Release 1.0.1
49 weeks ago

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