Enum lzxd::DecodeFailed [−][src]
pub enum DecodeFailed {
OddLength,
OverreadBlock,
UnexpectedEof,
InvalidBlock(u8),
InvalidPretreeElement(u16),
ChunkTooLong,
}
Expand description
The error type used when decompression fails.
Variants
The chunk length must be divisible by 2.
The chunk data caused a read of more items than the current block had in a single step.
There was not enough data in the chunk to fully decode, and a premature end was found.
InvalidBlock(u8)
An invalid block type was found.
Tuple Fields of InvalidBlock
0: u8
InvalidPretreeElement(u16)
An invalid pretree element was found.
Tuple Fields of InvalidPretreeElement
0: u16
Tried to read a chunk longer than MAX_CHUNK_SIZE
.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.