• Home
  • Raw
  • Download

Lines Matching defs:compressor

81 type compressor struct {  struct
82 compressionLevel
84 w *huffmanBitWriter
85 bulkHasher func([]byte, []uint32)
88 fill func(*compressor, []byte) int // copy data to window
89 step func(*compressor) // process window
90 bestSpeed *deflateFast // Encoder for BestSpeed
97 chainHead int
98 hashHead [hashSize]uint32
99 hashPrev [windowSize]uint32
100 hashOffset int
103 index int
104 window []byte
105 windowEnd int
106 blockStart int // window index where current tokens start
107 byteAvailable bool // if true, still need to process window[index-1].
109 sync bool // requesting flush
112 tokens []token
115 length int
116 offset int
117 maxInsertIndex int
118 err error
121 hashMatch [maxMatchLength - 1]uint32
124 func (d *compressor) fillDeflate(b []byte) int {
164 func (d *compressor) writeBlock(tokens []token, index int) error {
181 func (d *compressor) fillWindow(b []byte) {
231 …or) findMatch(pos int, prevHead int, prevLength int, lookahead int) (length, offset int, ok bool) {
283 func (d *compressor) writeStoredBlock(buf []byte) error {
332 func (d *compressor) encSpeed() {
369 func (d *compressor) initDeflate() {
381 func (d *compressor) deflate() {
514 func (d *compressor) fillStore(b []byte) int {
520 func (d *compressor) store() {
530 func (d *compressor) storeHuff() {
539 func (d *compressor) write(b []byte) (n int, err error) {
554 func (d *compressor) syncFlush() error {
569 func (d *compressor) init(w io.Writer, level int) (err error) {
602 func (d *compressor) reset(w io.Writer) {
631 func (d *compressor) close() error {