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