std.compress.gzip
Compression and decompression using gzip.
This module provides types for compressing and decompressing data using the gzip compression algorithm.
Compressing data is done using the Encoder type, while decompressing is done
using either a Decoder or Reader. Refer to the documentation of these
types for more details.
The API exposed is currently limited to compressing and decompressing data. Accessing additional data such as the gzip headers isn't supported.
Compression backend
Compression is implemented using the libz-rs-sys Rust crate, included by Inko's runtime library. This crate in turn implements an API compatible with that of zlib, but removes the need for having to install zlib to compile and/or run the code. This also makes cross-compilation easier. The performance of this crate should be on par with that of zlib-ng.
Types
| Value | Compression | A type describing the compression level to use. |
| DecodeError | An error produced while decompressing compressed data. | |
| Decoder | A type for decompressing data compressed using gzip. | |
| Encoder | A type for compressing data using gzip. | |
| Reader | A reader type that compresses data from a |