LZMA2
public class LZMA2 : DecompressionAlgorithm
Provides decompression function for LZMA2 algorithm.
-
Decompresses
datausing LZMA2 algortihm.Note
It is assumed that the first byte of
datais a dictionary size encoded with standard encoding scheme of LZMA2 format.Throws
LZMAErrororLZMA2Errorif unexpected byte (bit) sequence was encountered indata. It may indicate that either data is damaged or it might not be compressed with LZMA2 at all.Declaration
Swift
public static func decompress(data: Data) throws -> DataParameters
dataData compressed with LZMA2.
Return Value
Decompressed data.
View on GitHub
LZMA2 Class Reference