GzipArchive
public final class GzipArchive: Archive
A class with unarchive function for gzip archives.
-
Unarchives gzip archive stored in
archiveData.If data passed is not actually a gzip archive,
GzipErrorwill be thrown.If data inside the archive is not actually compressed with DEFLATE algorithm,
DeflateErrorwill be thrown.Note
This function is specification compliant.
Parameter
Parameter archiveData: Data compressed with gzip.
Throws
DeflateErrororGzipErrordepending on the type of inconsistency in data. It may indicate that either the data is damaged or it might not be compressed with gzip or DEFLATE at all.Returns
Unarchived data.
Declaration
Swift
public static func unarchive(archiveData data: Data) throws -> DataParameters
archiveDataData compressed with gzip.
Return Value
Unarchived data.
View on GitHub
GzipArchive Class Reference