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