BZip2
public class BZip2: DecompressionAlgorithm
Provides decompression function for BZip2 algorithm.
-
Decompresses
datausing BZip2 algortihm.If
datais not actually compressed with BZip2,BZip2Errorwill be thrown.Throws
BZip2Errorif unexpected byte (bit) sequence was encountered indata. It may indicate that either data is damaged or it might not be compressed with BZip2 at all.Declaration
Swift
public static func decompress(data: Data) throws -> DataParameters
dataData compressed with BZip2.
Return Value
Decompressed data.
View on GitHub
BZip2 Class Reference