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.
  • 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