MCPcopy Index your code
hub / github.com/klauspost/compress / initialize

Method initialize

zstd/encoder.go:90–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88}
89
90func (e *Encoder) initialize() {
91 if e.o.concurrent == 0 {
92 e.o.setDefault()
93 }
94 e.encoders = make(chan encoder, e.o.concurrent)
95 for i := 0; i < e.o.concurrent; i++ {
96 enc := e.o.encoder()
97 e.encoders <- enc
98 }
99}
100
101// Reset will re-initialize the writer and new writes will encode to the supplied writer
102// as a new, independent stream.

Callers 1

prepareSequencesMethod · 0.45

Calls 2

encoderMethod · 0.80
setDefaultMethod · 0.45

Tested by

no test coverage detected