MCPcopy
hub / github.com/klauspost/compress / NewStatelessWriter

Function NewStatelessWriter

flate/stateless.go:53–55  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

51// but compression and speed will be suboptimal.
52// Because of this, the size of actual Write calls will affect output size.
53func NewStatelessWriter(dst io.Writer) io.WriteCloser {
54 return &statelessWriter{dst: dst}
55}
56
57// bitWriterPool contains bit writers that can be reused.
58var bitWriterPool = sync.Pool{

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…