GzipHeader

public struct GzipHeader

A structure which provides information about gzip archive.

  • 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, GzipError will be thrown.

    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) throws

    Parameters

    archiveData

    Data compressed with gzip.