Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + const BestCompression + const BestSpeed + const DefaultCompression + const HuffmanOnly + const NoCompression + var ErrChecksum = errors.New("zlib: invalid checksum") + var ErrDictionary = errors.New("zlib: invalid dictionary") + var ErrHeader = errors.New("zlib: invalid header") + func NewReader(r io.Reader) (io.ReadCloser, error) + func NewReaderDict(r io.Reader, dict []byte) (io.ReadCloser, error) + type Resetter interface + Reset func(r io.Reader, dict []byte) error + type Writer struct + func NewWriter(w io.Writer) *Writer + func NewWriterLevel(w io.Writer, level int) (*Writer, error) + func NewWriterLevelDict(w io.Writer, level int, dict []byte) (*Writer, error) + func (z *Writer) Close() error + func (z *Writer) Flush() error + func (z *Writer) Reset(w io.Writer) + func (z *Writer) Write(p []byte) (n int, err error)