LZMA

public final class LZMA: DecompressionAlgorithm

Provides function to decompress data, which were compressed with LZMA

  • Decompresses compressedData with LZMA algortihm.

    If data passed is not actually compressed with LZMA, LZMAError will be thrown.

    Throws

    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 LZMA at all.

    Declaration

    Swift

    public static func decompress(compressedData data: Data) throws -> Data

    Parameters

    compressedData

    Data compressed with LZMA.

    Return Value

    Decompressed data.