Skip to main content

Module compression

Module compression 

Source

Enums§

Compression
Detected compression format based on magic bytes.
FileContents
Holds file contents either as an owned String or a memory-mapped region.

Functions§

detect_compression
Detect compression format from the first bytes of a file.
detect_compression_from_extension
Detect compression format from a file extension.
gzip_writer
Creates a gzip-compressed writer wrapping a file at the given path.
read_file_contents
Reads file contents, decompressing if needed.