-
Levels of compression which can be used to create Zlib archive.
See moreDeclaration
Swift
public enum CompressionLevel : Int
-
Compression method of archive. Always
.deflate
for Zlib archives.Declaration
Swift
public let compressionMethod: CompressionMethod
-
Level of compression used in archive.
Declaration
Swift
public let compressionLevel: CompressionLevel
-
Size of ‘window’: moving interval of data which was used to make archive.
Declaration
Swift
public let windowSize: Int
-
Initializes the structure with the values from Zlib
archive
.If data passed is not actually a Zlib archive,
ZlibError
will be thrown.Throws
ZlibError
. It may indicate that either archive is damaged or it might not be archived with Zlib at all.Declaration
Swift
public init(archive data: Data) throws
Parameters
archive
Data archived with zlib.