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

# Functions

NewReader creates a new Reader reading the given reader.
NewWriter returns a new Writer.
NewWriterLevel is like NewWriter but specifies the compression level instead of assuming DefaultCompression.
NewWriterWindow returns a new Writer compressing data with a custom window size.

# Constants

These constants are copied from the flate package, so that code that imports "compress/gzip" does not also have to import "compress/flate".
These constants are copied from the flate package, so that code that imports "compress/gzip" does not also have to import "compress/flate".
These constants are copied from the flate package, so that code that imports "compress/gzip" does not also have to import "compress/flate".
These constants are copied from the flate package, so that code that imports "compress/gzip" does not also have to import "compress/flate".
These constants are copied from the flate package, so that code that imports "compress/gzip" does not also have to import "compress/flate".
MaxCustomWindowSize is the maximum custom window that can be sent to NewWriterWindow.
MinCustomWindowSize is the minimum window size that can be sent to NewWriterWindow.
These constants are copied from the flate package, so that code that imports "compress/gzip" does not also have to import "compress/flate".
StatelessCompression will do compression but without maintaining any state between Write calls.

# Variables

ErrChecksum is returned when reading GZIP data that has an invalid checksum.
ErrHeader is returned when reading GZIP data that has an invalid header.

# Structs

The gzip file stores a header giving metadata about the compressed file.
A Reader is an io.Reader that can be read to retrieve uncompressed data from a gzip-format compressed file.
A Writer is an io.WriteCloser.