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

Function acquireGzipWriter

utils/binary/pool.go:39–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37}
38
39func acquireGzipWriter() *GzipWriter {
40 ret := gzipPool.Get().(*GzipWriter)
41 ret.buf.Reset()
42 ret.w.Reset(ret.buf)
43 return ret
44}
45
46func releaseGzipWriter(w *GzipWriter) {
47 // See https://golang.org/issue/23199

Callers 1

GZipCompressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected