GzipError
public enum GzipError: Error
Error happened during unarchiving gzip archive. It may indicate that either the data is damaged or it might not be gzip archive at all.
wrongMagic: first two bytes of archive were not 31 and 139.wrongCompressionMethod: unsupported compression method (not 8 aka Deflate).wrongFlags: unsupported flags (reserved flags weren’t 0).wrongHeaderCRC: computed Cyclic Redundancy Check of archive’s header didn’t match the archive’s value.wrongCRC: computed Cyclic Redundancy Check of uncompressed data didn’t match the archive’s value. Associated value contains already decompressed data.wrongISize: size of uncompressed data modulo 2^32 didn’t match the archive’s value.
-
First two bytes of archive were not 31 and 139.
Declaration
Swift
case wrongMagic
-
Compression method was other than 8 which is the only supported one.
Declaration
Swift
case wrongCompressionMethod
-
Reserved flags bits were not equal to 0.
Declaration
Swift
case wrongFlags
-
Computed CRC of header didn’t match the value stored in the archive.
Declaration
Swift
case wrongHeaderCRC
-
Computed CRC of uncompressed data didn’t match the value stored in the archive. Associated value contains already decompressed data.
Declaration
Swift
case wrongCRC(Data)
-
Computed isize didn’t match the value stored in the archive.
Declaration
Swift
case wrongISize
View on GitHub
GzipError Enum Reference