Versions in this module Expand all Collapse all v1 v1.0.0 Jun 15, 2021 Changes in this version + const BestCompression + const BestSpeed + const ConstantCompression + const DefaultCompression + const HuffmanOnly + 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 int64 + func (e CorruptInputError) Error() string + type InternalError string + func (e InternalError) Error() string + type ReadError struct + Err error + Offset int64 + func (e *ReadError) Error() string + type Reader interface + type Resetter interface + Reset func(r io.Reader, dict []byte) error + type WriteError struct + Err error + Offset int64 + func (e *WriteError) Error() string + type Writer struct + func NewWriter(w io.Writer, level int) (*Writer, error) + func NewWriterDict(w io.Writer, level int, dict []byte) (*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)