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

Struct nopDecompressor

benchmark/benchmain/main.go:1019–1019  ·  benchmark/benchmain/main.go::nopDecompressor

nopDecompressor is a decompressor that just copies data.

Source from the content-addressed store, hash-verified

1017
1018// nopDecompressor is a decompressor that just copies data.
1019type nopDecompressor struct{}
1020
1021func (nopDecompressor) Do(r io.Reader) ([]byte, error) { return io.ReadAll(r) }
1022func (nopDecompressor) Type() string { return compModeNop }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected