Enumeration Caseswift-png 4.4.5LZ77
invalidStreamChecksum(declared:computed:)
The modular redundancy checksum computed on the uncompressed data did not match the checksum declared in the compressed data stream footer.
LZ77.DecompressionError.swift:28case invalidStreamChecksum(declared: UInt32, computed: UInt32)
This error should not be confused with StreamHeaderError.invalidCheckBits
, nor should it be confused with PNG.LexingError.invalidChunkChecksum(declared:computed:)
, which refers to the cyclic redundancy checksum in every PNG chunk.
Other cases
case invalidBlockTypeCode(UInt8)
A compressed block had an invalid block type code.
case invalidBlockElementCountParity(UInt16, UInt16)
A compressed block of stored type had inconsistent element count fields.
case invalidHuffmanRunLiteralSymbolCount(Int)
A compressed block of dynamic type declared an invalid number of run-literal symbols.
case invalidHuffmanCodelengthHuffmanTable
A compressed block of dynamic type declared an invalid codelength huffman table.
case invalidHuffmanCodelengthSequence
A compressed block of dynamic type declared an invalid sequence of symbol codelengths.
case invalidHuffmanTable
A compressed block of dynamic type declared an invalid distance or run-literal huffman table.
case invalidStringReference
A compressed block contains an invalid run-length string reference.