LZMA2

public class LZMA2 : DecompressionAlgorithm

Provides decompression function for LZMA2 algorithm.

  • Decompresses data using LZMA2 algortihm.

    Note

    It is assumed that the first byte of data is a dictionary size encoded with standard encoding scheme of LZMA2 format.

    Throws

    LZMAError or LZMA2Error if unexpected byte (bit) sequence was encountered in data. 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 -> Data

    Parameters

    data

    Data compressed with LZMA2.

    Return Value

    Decompressed data.