DeflateError
public enum DeflateError: Error
Error happened during deflate decompression. It may indicate that either the data is damaged or it might not be compressed with DEFLATE at all.
WrongUncompressedBlockLengths:lengthandnlengthbytes of uncompressed block were not compatible.WrongBlockType: unsupported block type (not 0, 1 or 2).WrongSymbol: unsupported Huffman tree’s symbol.SymbolNotFound: symbol from input data was not found in Huffman tree.
-
Uncompressed block’
lengthandnlengthbytes were not compatible.Declaration
Swift
case WrongUncompressedBlockLengths
-
Unknown block type (not from 0 to 2).
Declaration
Swift
case WrongBlockType
-
Decoded symbol was found in Huffman tree but is unknown.
Declaration
Swift
case WrongSymbol
-
Symbol was not found in Huffman tree.
Declaration
Swift
case SymbolNotFound
View on GitHub
DeflateError Enum Reference