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.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.Declaration
Swift
public static func decompress(compressedData data: Data) throws -> DataParameters
compressedDataData compressed with DEFLATE.
Return Value
Decompressed data.
-
Undocumented
Declaration
Swift
public final class Deflate: DecompressionAlgorithm
View on GitHub
Deflate Class Reference