Versions in this module Expand all Collapse all v1 v1.1.0 Jan 12, 2024 Changes in this version + type AutoReset struct + func (a AutoReset) FindMatches(dst []Match, src []byte) []Match + type Encoder interface + Encode func(dst []byte, src []byte, matches []Match, lastBlock bool) []byte + Reset func() + type M0 struct + Lazy bool + MaxDistance int + MaxLength int + func (M0) Reset() + func (m M0) FindMatches(dst []Match, src []byte) []Match + type M4 struct + ChainLength int + DistanceBitCost int + HashLen int + MaxDistance int + MinLength int + TableBits int + func (q *M4) FindMatches(dst []Match, src []byte) []Match + func (q *M4) Reset() + type Match struct + Distance int + Length int + Unmatched int + type MatchFinder interface + FindMatches func(dst []Match, src []byte) []Match + Reset func() + type NoMatchFinder struct + func (n NoMatchFinder) FindMatches(dst []Match, src []byte) []Match + func (n NoMatchFinder) Reset() + type TextEncoder struct + func (t TextEncoder) Encode(dst []byte, src []byte, matches []Match, lastBlock bool) []byte + func (t TextEncoder) Reset() + type Writer struct + BlockSize int + Dest io.Writer + Encoder Encoder + MatchFinder MatchFinder + func (w *Writer) Close() error + func (w *Writer) Reset(newDest io.Writer) + func (w *Writer) Write(p []byte) (n int, err error)