内容压缩算法使用Pool管理

This commit is contained in:
刘祥超
2022-03-20 00:05:47 +08:00
parent 856f9d4a3b
commit 83df9d0c29
25 changed files with 625 additions and 157 deletions

View File

@@ -2,9 +2,16 @@
package compressions
import "io"
type Writer interface {
Write(p []byte) (int, error)
Flush() error
Reset(writer io.Writer)
RawClose() error
Close() error
Level() int
SetPool(pool *WriterPool)
ResetFinish()
}