MCPcopy
hub / github.com/grpc/grpc-go / Compress

Method Compress

encoding/encoding.go:65–65  ·  view source on GitHub ↗

Compress writes the data written to wc to w after compressing it. If an error occurs while initializing the compressor, that error is returned instead.

(w io.Writer)

Source from the content-addressed store, hash-verified

63 // error occurs while initializing the compressor, that error is returned
64 // instead.
65 Compress(w io.Writer) (io.WriteCloser, error)
66 // Decompress reads data from r, decompresses it, and provides the
67 // uncompressed data via the returned io.Reader. If an error occurs while
68 // initializing the decompressor, that error is returned instead.

Callers 2

compressFunction · 0.65
CompressMethod · 0.65

Calls

no outgoing calls

Tested by 1

CompressMethod · 0.52