Lines Matching full:compressor
23 minMatchLength = 3 // The smallest match that the compressor looks for
24 maxMatchLength = 258 // The longest match for the compressor
60 type compressor struct {
66 fill func(*compressor, []byte) int // copy data to window
67 step func(*compressor) // process window
98 func (d *compressor) fillDeflate(b []byte) int {
135 func (d *compressor) writeBlock(tokens []token, index int, eof bool) error {
150 func (d *compressor) findMatch(pos int, prevHead int, prevLength int, lookahead int) (length, offset int, ok bool) {
206 func (d *compressor) writeStoredBlock(buf []byte) error {
214 func (d *compressor) initDeflate() {
228 func (d *compressor) deflate() {
362 func (d *compressor) fillStore(b []byte) int {
368 func (d *compressor) store() {
375 func (d *compressor) write(b []byte) (n int, err error) {
385 func (d *compressor) syncFlush() error {
397 func (d *compressor) init(w io.Writer, level int) (err error) {
403 d.fill = (*compressor).fillStore
404 d.step = (*compressor).store
411 d.fill = (*compressor).fillDeflate
412 d.step = (*compressor).deflate
422 func (d *compressor) reset(w io.Writer) {
463 func (d *compressor) close() error {
527 d compressor