ZlibError

public enum ZlibError : Error

Represents an error which happened while processing a Zlib archive. It may indicate that either archive is damaged or it might not be Zlib archive at all.

  • Compression method used in archive is different from Deflate, which is the only supported one.

    Declaration

    Swift

    case wrongCompressionMethod
  • Compression info has value incompatible with Deflate compression method.

    Declaration

    Swift

    case wrongCompressionInfo
  • First two bytes of archive’s flags are inconsistent with each other.

    Declaration

    Swift

    case wrongFcheck
  • Compression level has value, which is different from the supported ones.

    Declaration

    Swift

    case wrongCompressionLevel
  • Computed checksum of uncompressed data doesn’t match the value stored in archive. Associated value of the error contains already decompressed data.

    Declaration

    Swift

    case wrongAdler32(Data)