Versions in this module Expand all Collapse all v1 v1.2.1 Jan 14, 2017 Changes in this version + const BestCompression + const BestSpeed + const ConstantCompression + 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)