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

# Functions

NewReader returns a new ReadCloser that can be used to read the uncompressed version of r.
NewReaderDict is like NewReader but initializes the reader with a preset dictionary.
NewReaderOpts returns new reader with provided options.
NewStatelessWriter will do compression but without maintaining any state between Write calls.
NewWriter returns a new Writer compressing data at the given level.
NewWriterDict is like NewWriter but initializes the new Writer with a preset dictionary.
NewWriterWindow returns a new Writer compressing data with a custom window size.
StatelessDeflate allows compressing directly to a Writer without retaining state.
WithDict initializes the reader with a preset dictionary.
WithPartialBlock tells decompressor to return after each block, so it can read data written with partial flush.

# Constants

compatibility alias.
HuffmanOnly disables Lempel-Ziv match searching and only performs Huffman entropy encoding.
MaxCustomWindowSize is the maximum custom window that can be sent to NewWriterWindow.
MinCustomWindowSize is the minimum window size that can be sent to NewWriterWindow.

# Structs

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

# Interfaces

Reader is the actual read interface needed by NewReader.
Resetter resets a ReadCloser returned by NewReader or NewReaderDict to to switch to a new underlying Reader.

# Type aliases

A CorruptInputError reports the presence of corrupt input at a given offset.
An InternalError reports an error in the flate code itself.
A ReadError reports an error encountered while reading input.
A WriteError reports an error encountered while writing output.