Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/grpc/grpc-go
/ Compress
Method
Compress
encoding/gzip/gzip.go:73–77 ·
view source on GitHub ↗
(w io.Writer)
Source
from the content-addressed store, hash-verified
71
}
72
73
func
(c *compressor) Compress(w io.Writer) (io.WriteCloser, error) {
74
z := c.poolCompressor.Get().(*writer)
75
z.Writer.Reset(w)
76
return
z, nil
77
}
78
79
func
(z *writer) Close() error {
80
defer
z.pool.Put(z)
Callers
nothing calls this directly
Calls
2
Get
Method · 0.65
Reset
Method · 0.45
Tested by
no test coverage detected