github.com/TeaOSLab/EdgeNode@v1.3.8/internal/compressions/writer.go (about)

     1  // Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
     2  
     3  package compressions
     4  
     5  import "io"
     6  
     7  type Writer interface {
     8  	Write(p []byte) (int, error)
     9  	Flush() error
    10  	Reset(writer io.Writer)
    11  	RawClose() error
    12  	Close() error
    13  	Level() int
    14  	IncreaseHit() uint32
    15  
    16  	SetPool(pool *WriterPool)
    17  	ResetFinish()
    18  }