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