- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for newFlateReader (0.14 sec)
-
src/archive/zip/register.go
w.mu.Lock() defer w.mu.Unlock() var err error if w.fw != nil { err = w.fw.Close() flateWriterPool.Put(w.fw) w.fw = nil } return err } var flateReaderPool sync.Pool func newFlateReader(r io.Reader) io.ReadCloser { fr, ok := flateReaderPool.Get().(io.ReadCloser) if ok { fr.(flate.Resetter).Reset(r, nil) } else { fr = flate.NewReader(r) } return &pooledFlateReader{fr: fr} }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Oct 13 18:36:46 UTC 2023 - 3.7K bytes - Viewed (0)