ZlibError
public enum ZlibError: Error
Error happened during unarchiving Zlib archive. It may indicate that either the data is damaged or it might not be Zlib archive at all.
wrongCompressionMethod: unsupported compression method (not 8).wrongCompressionInfo: unsupported compression info (greater than 7).wrongFcheck: first two bytes were inconsistent with each other.wrongCompressionLevel: unsupported compression level (not 0, 1, 2 or 3).WrongAdler32: computed Adler-32 checksum of uncompressed data didn’t match the archive’s value. Associated value contains already decompressed data.
-
Compression method was other than 8 which is the only supported one.
Declaration
Swift
case wrongCompressionMethod
-
Compression info was greater than 7 which is uncompatible number 8 compression method.
Declaration
Swift
case wrongCompressionInfo
-
First two bytes were inconsistent with each other.
Declaration
Swift
case wrongFcheck
-
Compression level was other than 0, 1, 2, 3.
Declaration
Swift
case wrongCompressionLevel
-
Computed Adler-32 sum of uncompressed data didn’t match the value stored in the archive. Associated value contains already decompressed data.
Declaration
Swift
case wrongAdler32(Data)
View on GitHub
ZlibError Enum Reference