Enum lzxd::DecodeFailed [−][src]
pub enum DecodeFailed {
OddLength,
OverreadBlock,
UnexpectedEof,
InvalidBlock(u8),
InvalidBlockSize(u32),
InvalidPretreeElement(u16),
InvalidPretreeRle,
InvalidPathLengths,
WindowTooSmall,
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
InvalidBlockSize(u32)
An invalid block size was found.
Tuple Fields of InvalidBlockSize
0: u32
InvalidPretreeElement(u16)
An invalid pretree element was found.
Tuple Fields of InvalidPretreeElement
0: u16
Invalid pretree run-length encoding.
When attempting to construct a decode tree, we encountered an invalid path length tree.
The given window size was too small.
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 !=
.