BZip2
public final class BZip2: DecompressionAlgorithm
Provides function to decompress data, which were compressed using BZip2.
-
Decompresses
compressedDatawith BZip2 algortihm.If data passed is not actually compressed with BZip2,
BZip2Errorwill be thrown.Throws
BZip2Errorif unexpected byte (bit) sequence was encountered incompressedData. It may indicate that either the data is damaged or it might not be compressed with BZip2 at all.Declaration
Swift
public static func decompress(compressedData data: Data) throws -> DataParameters
compressedDataData compressed with BZip2.
Return Value
Decompressed data.
View on GitHub
BZip2 Class Reference