MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / releaseGzipWriter

Function releaseGzipWriter

utils/binary/pool.go:46–53  ·  view source on GitHub ↗
(w *GzipWriter)

Source from the content-addressed store, hash-verified

44}
45
46func releaseGzipWriter(w *GzipWriter) {
47 // See https://golang.org/issue/23199
48 const maxSize = 1 << 16
49 if w.buf.Cap() < maxSize {
50 w.buf.Reset()
51 gzipPool.Put(w)
52 }
53}
54
55type zlibWriter struct {
56 w *zlib.Writer

Callers 1

GZipCompressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected