Package-level declarations

Types

Link copied to clipboard
object Gzip

gzip (RFC 1952) / zlib (RFC 1950) wrapper handling on top of Inflate: a pure-Kotlin port of libtorrent's inflate_gzip + gzip_header (src/gzip.cpp).

Link copied to clipboard
object Inflate

Raw DEFLATE (RFC 1951) decompressor. This is a faithful pure-Kotlin port of Mark Adler's puff() as bundled in libtorrent (src/puff.cpp, "puff" v2.3). puff is the canonical, deliberately-simple reference implementation of inflate; it trades speed for being an unambiguous specification of the format. libtorrent ships it (instead of pulling in zlib) precisely so it can decode gzip'd HTTP tracker and scrape responses with no external dependency. That is also our situation in commonMain.

Link copied to clipboard

Error codes for DEFLATE / gzip inflation, a direct port of the numeric return values of libtorrent's puff() (src/puff.cpp) and the matching gzip_errors::error_code_enum (include/libtorrent/gzip.hpp).

Link copied to clipboard

Thrown by Inflate and Gzip when decompression fails. Carries the faithful libtorrent error so callers can branch on the exact failure mode (e.g. distinguish a bad gzip header from a truncated stream).