bzip2.swift the package to easy compress(decompress) bz2 Data in Swift
Deflate and decompress bz2 data was never been as easy.
// Compress data
let compressed = try Data(count: 10).bz2()
let compressed = try BZip2.compress(Data(count: 10))
// Decompress data
let decompressed = try Data(count: 10).fromBZ2()
let decompressed = try BZip2.decompress(Data(count: 10))
// Decompressing done by Streaming API
try BZip2.decompress(src: InputStream(), dst: OutputStream())
// Compressing done by Streaming API
try BZip2.compress(src: InputStream(), dst: OutputStream())
- Handle files
- Tests