GzipHeader
public struct GzipHeader
Represents a GZip archive’s header.
-
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. Currently, always equals to
.deflate.Declaration
Swift
public let compressionMethod: CompressionMethod -
The most recent modification time of the original file. If corresponding archive’s field is set to 0, which means that no time was specified, then this property is
nil.Declaration
Swift
public let modificationTime: Date? -
Type of file system on which archivation took place.
Declaration
Swift
public let osType: FileSystemType -
Name of the original file. If archive doesn’t contain file’s name, then
nil.Declaration
Swift
public let fileName: String? -
Comment stored in archive. If archive doesn’t contain any comment, then
nil.Declaration
Swift
public let comment: String? -
Check if file is likely to be text file or ASCII-file.
Declaration
Swift
public let isTextFile: Bool -
Initializes the structure with the values from the first ‘member’ of GZip
archive.If data passed is not actually a GZip archive,
GzipErrorwill be thrown.Throws
GzipError. It may indicate that either archive is damaged or it might not be archived with GZip at all.Declaration
Swift
public init(archive data: Data) throwsParameters
archiveData archived with GZip.
View on GitHub
GzipHeader Structure Reference