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

Link copied to clipboard

puff 2: bits()/decode() read past the end of the input (longjmp path).

Link copied to clipboard

puff 1: only reachable with a bounded output buffer. This decoder grows instead.

Link copied to clipboard

puff -1: block type field was 3 (reserved).

Link copied to clipboard

puff -2: stored block LEN did not match ~LEN.

Link copied to clipboard

puff -3: dynamic header declared more codes than the format allows.

Link copied to clipboard

puff -4: the code-length code itself was not a complete set.

Link copied to clipboard

puff -5: a repeat-previous (16) instruction with no previous length.

Link copied to clipboard

puff -6: a run-length instruction overran the declared symbol count.

Link copied to clipboard

puff -7: literal/length code lengths formed an invalid (over or incomplete) set.

Link copied to clipboard

puff -8: distance code lengths formed an invalid set.

Link copied to clipboard

puff -9: the dynamic block had no end-of-block symbol.

Link copied to clipboard

puff -10: an invalid Huffman code was decoded in a fixed or dynamic block.

Link copied to clipboard

puff -11: a back-reference distance pointed before the start of output.

Link copied to clipboard

wrapper-level: the gzip or zlib header magic, method or flags were malformed.

Link copied to clipboard

wrapper-level: inflated output would exceed the caller-supplied maximum.

Link copied to clipboard

Catch-all.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val code: Int
Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.