NewStatelessWriter will do compression but without maintaining any state between Write calls. There will be no memory kept between Write calls, but compression and speed will be suboptimal. Because of this, the size of actual Write calls will affect output size.
(dst io.Writer)
| 51 | // but compression and speed will be suboptimal. |
| 52 | // Because of this, the size of actual Write calls will affect output size. |
| 53 | func NewStatelessWriter(dst io.Writer) io.WriteCloser { |
| 54 | return &statelessWriter{dst: dst} |
| 55 | } |
| 56 | |
| 57 | // bitWriterPool contains bit writers that can be reused. |
| 58 | var bitWriterPool = sync.Pool{ |
no outgoing calls
searching dependent graphs…