MCPcopy
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
73func (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
79func (z *writer) Close() error {
80 defer z.pool.Put(z)

Callers

nothing calls this directly

Calls 2

GetMethod · 0.65
ResetMethod · 0.45

Tested by

no test coverage detected