Versions in this module Expand all Collapse all v1 v1.0.1 May 20, 2024 v1.0.0 Apr 24, 2024 Changes in this version + const BestCompression + const BestSpeed + const DefaultCompression + const HuffmanOnly + const InvalidDist + const NoCompression + func NewDynCompressor(w io.Writer, level int, windowSize int) *dynCompressor + func NewHuffmanOnly(w io.Writer) *huffmanOnly + type BitBuf struct + func (b *BitBuf) Sync() + func (b *BitBuf) WriteBit(code uint16, count uint8) + type LevelCompressor interface + Accumulate func(data []byte) (n int, trigger bool) + Close func() error + Compress func() error + Flush func() error + Reset func(w io.Writer) + type Writer struct + func NewWriter(under io.Writer, level int) (w *Writer, err error) + func NewWriterDict(under io.Writer, level int, dict []byte) (w *Writer, err error) + func NewWriterwWith4KWindow(under io.Writer, level int) (w *Writer, err error) + func (w *Writer) Close() (err error) + func (w *Writer) Flush() (err error) + func (w *Writer) Reset(under io.Writer) + func (w *Writer) Write(data []byte) (n int, err error)