InflateError
Error codes for DEFLATE and gzip inflation. The integer code is exactly the value Mark Adler's puff() returns, plus two wrapper-level codes puff() never produces. A reader who cross-references the canonical C source can map an exception back to the branch that raised it.
Entries
puff 2: bits()/decode() read past the end of the input (longjmp path).
puff 1: only reachable with a bounded output buffer. This decoder grows instead.
puff -1: block type field was 3 (reserved).
puff -2: stored block LEN did not match ~LEN.
puff -3: dynamic header declared more codes than the format allows.
puff -4: the code-length code itself was not a complete set.
puff -5: a repeat-previous (16) instruction with no previous length.
puff -6: a run-length instruction overran the declared symbol count.
puff -7: literal/length code lengths formed an invalid (over or incomplete) set.
puff -8: distance code lengths formed an invalid set.
puff -9: the dynamic block had no end-of-block symbol.
puff -10: an invalid Huffman code was decoded in a fixed or dynamic block.
puff -11: a back-reference distance pointed before the start of output.
wrapper-level: the gzip or zlib header magic, method or flags were malformed.
wrapper-level: inflated output would exceed the caller-supplied maximum.
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.