GzipHeader
public struct GzipHeader
A strucutre which provides information about gzip archive.
-
Supported compression methods in gzip archive.
See moreDeclaration
Swift
public enum CompressionMethod: Int -
Type of file system on which gzip archive was created.
See moreDeclaration
Swift
public enum FileSystemType: Int -
Compression method of archive. Always equals to
.deflate.Declaration
Swift
public let compressionMethod: CompressionMethod -
The most recent modification time of the original file.
Declaration
Swift
public let modificationTime: Date -
Type of file system on which compression took place.
Declaration
Swift
public let osType: FileSystemType -
Name of the original file.
Declaration
Swift
public let originalFileName: String? -
Comment inside the archive.
Declaration
Swift
public let comment: String? -
Initializes the structure with the values of first ‘member’ in gzip archive presented in
archiveData.If data passed is not actually a gzip archive,
GzipErrorwill be thrown.Parameter
Parameter archiveData: Data compressed with gzip.
Throws
GzipError. It may indicate that either the data is damaged or it might not be compressed with gzip at all.Declaration
Swift
public init(archiveData: Data) throwsParameters
archiveDataData compressed with gzip.
View on GitHub
GzipHeader Struct Reference