-
Unarchives xz archive stored in
archiveData.If data passed is not actually a xz archive,
XZErrorwill be thrown. If filters other than LZMA2 are used in archive thenXZError.WrongFilterIDwill be thrown.If data inside the archive is not actually compressed with LZMA2,
LZMAErrororLZMA2Errorwill be thrown.Throws
LZMAError,LZMA2ErrororXZErrordepending on the type of inconsistency in data. It may indicate that either the data is damaged or it might not be compressed with xz or LZMA(2) at all.Declaration
Swift
public static func unarchive(archiveData data: Data) throws -> DataParameters
archiveDataData compressed with xz.
Return Value
Unarchived data.
View on GitHub
XZArchive Class Reference