BZip2

public final class BZip2: DecompressionAlgorithm

Provides function to decompress data, which were compressed using BZip2.

  • Decompresses compressedData with BZip2 algortihm.

    If data passed is not actually compressed with BZip2, BZip2Error will be thrown.

    Throws

    BZip2Error 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 BZip2 at all.

    Declaration

    Swift

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

    Parameters

    compressedData

    Data compressed with BZip2.

    Return Value

    Decompressed data.