Enumeration Caseswift-png 4.4.5PNG
truncatedChunkBody(expected:)
The lexer encountered end-of-stream while reading a chunk body from a bytestream.
PNG.LexingError.swift:24case truncatedChunkBody(expected: Int)
Parameters
- expected
The number of bytes the lexer expected to read.
Other cases
case truncatedSignature
The lexer encountered end-of-stream while reading signature bytes from a bytestream.
case invalidSignature([UInt8])
The signature bytes read by the lexer did not match the expected sequence.
case truncatedChunkHeader
The lexer encountered end-of-stream while reading a chunk header from a bytestream.
case invalidChunkTypeCode(UInt32)
The lexer read a chunk with an invalid type identifier code.
case invalidChunkChecksum(declared: UInt32, computed: UInt32)
The chunk checksum computed by the lexer did not match the checksum declared in the chunk footer.