package
1.18.0
Repository: https://github.com/klauspost/compress.git
Documentation: pkg.go.dev

# Functions

NewReader creates a new ReadCloser.
NewReaderDict is like [NewReader] but uses a preset dictionary.
NewWriter creates a new Writer.
NewWriterLevel is like NewWriter but specifies the compression level instead of assuming DefaultCompression.
NewWriterLevelDict is like NewWriterLevel but specifies a dictionary to compress with.

# Constants

These constants are copied from the flate package, so that code that imports "compress/zlib" does not also have to import "compress/flate".
These constants are copied from the flate package, so that code that imports "compress/zlib" does not also have to import "compress/flate".
Deprecated: Use HuffmanOnly.
These constants are copied from the flate package, so that code that imports "compress/zlib" does not also have to import "compress/flate".
These constants are copied from the flate package, so that code that imports "compress/zlib" does not also have to import "compress/flate".
These constants are copied from the flate package, so that code that imports "compress/zlib" does not also have to import "compress/flate".

# Variables

ErrChecksum is returned when reading ZLIB data that has an invalid checksum.
ErrDictionary is returned when reading ZLIB data that has an invalid dictionary.
ErrHeader is returned when reading ZLIB data that has an invalid header.

# Structs

A Writer takes data written to it and writes the compressed form of that data to an underlying writer (see NewWriter).

# Interfaces

Resetter resets a ReadCloser returned by [NewReader] or [NewReaderDict] to switch to a new underlying Reader.