Versions in this module Expand all Collapse all v0 v0.0.2 Nov 6, 2023 Changes in this version + const BestCompression + const BestSpeed + const ConstantCompression + const DefaultCompression + const HuffmanOnly + const MaxCustomWindowSize + const MinCustomWindowSize + const NoCompression + func NewReader(r io.Reader) io.ReadCloser + func NewReaderDict(r io.Reader, dict []byte) io.ReadCloser + func NewStatelessWriter(dst io.Writer) io.WriteCloser + func StatelessDeflate(out io.Writer, in []byte, eof bool, dict []byte) error + type CorruptInputError = flate.CorruptInputError + type InternalError string + func (e InternalError) Error() string + type ReadError = flate.ReadError + type Reader interface + type Resetter interface + Reset func(r io.Reader, dict []byte) error + type WriteError = flate.WriteError + type Writer struct + func NewWriter(w io.Writer, level int) (*Writer, error) + func NewWriterDict(w io.Writer, level int, dict []byte) (*Writer, error) + func NewWriterWindow(w io.Writer, windowSize int) (*Writer, error) + func (w *Writer) Close() error + func (w *Writer) Flush() error + func (w *Writer) Reset(dst io.Writer) + func (w *Writer) ResetDict(dst io.Writer, dict []byte) + func (w *Writer) Write(data []byte) (n int, err error)