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

Function acquireZlibWriter

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

Source from the content-addressed store, hash-verified

69}
70
71func acquireZlibWriter() *zlibWriter {
72 ret := zlibPool.Get().(*zlibWriter)
73 ret.buf.Reset()
74 ret.w.Reset(ret.buf)
75 return ret
76}
77
78func releaseZlibWriter(w *zlibWriter) {
79 // See https://golang.org/issue/23199

Callers 1

ZlibCompressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected