ZlibHeader
public struct ZlibHeader
A strucutre which provides information about zlib archive.
-
Supported compression methods in zlib archive.
See moreDeclaration
Swift
public enum CompressionMethod: Int -
Levels of compression which can be used to create zlib archive.
See moreDeclaration
Swift
public enum CompressionLevel: Int -
Compression method of archive. Always equals to
.deflate.Declaration
Swift
public let compressionMethod: CompressionMethod -
Level of compression in the archive.
Declaration
Swift
public let compressionLevel: CompressionLevel -
Size of ‘window’: moving interval of data which was used to make the archive
Declaration
Swift
public let windowSize: Int -
Initializes the structure with the values from zlib archive presented in
archiveData.If data passed is not actually a zlib archive,
ZlibErrorwill be thrown.Parameter
Parameter archiveData: Data compressed with zlib.
Throws
ZlibError. It may indicate that either the data is damaged or it might not be compressed with zlib at all.Declaration
Swift
public init(archiveData: Data) throwsParameters
archiveDataData compressed with zlib.
View on GitHub
ZlibHeader Struct Reference