LZMA2

public final class LZMA2: DecompressionAlgorithm

Provides function to decompress data, which were compressed with LZMA2

  • Decompresses compressedData with LZMA2 algortihm. LZMA2 is a modification of LZMA.

    If data passed is not actually compressed with LZMA2, LZMA2Error or LZMAError will be thrown.

    Throws

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

    Parameters

    compressedData

    Data compressed with LZMA2.

    Return Value

    Decompressed data.