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

Method Decompress

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

Decompress reads data from r, decompresses it, and provides the uncompressed data via the returned io.Reader. If an error occurs while initializing the decompressor, that error is returned instead. The returned io.Reader may optionally implement io.ReadCloser, and if it does, gRPC will call Close(

(r io.Reader)

Source from the content-addressed store, hash-verified

70 // The returned io.Reader may optionally implement io.ReadCloser, and if it
71 // does, gRPC will call Close() exactly once.
72 Decompress(r io.Reader) (io.Reader, error)
73 // Name is the name of the compression codec and is used to set the content
74 // coding header. The result must be static; the result cannot change
75 // between calls.

Callers 1

decompressFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected