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