MCPcopy Create free account
hub / github.com/cortexproject/cortex / Compress

Method Compress

pkg/util/grpcencoding/zstd/zstd.go:47–52  ·  view source on GitHub ↗
(w io.Writer)

Source from the content-addressed store, hash-verified

45}
46
47func (c *compressor) Compress(w io.Writer) (io.WriteCloser, error) {
48 return &zstdWriteCloser{
49 enc: c.encoder,
50 writer: w,
51 }, nil
52}
53
54type zstdWriteCloser struct {
55 enc *zstd.Encoder

Callers 3

testCompressFunction · 0.45
BenchmarkCompressFunction · 0.45
BenchmarkDecompressFunction · 0.45

Calls

no outgoing calls

Tested by 3

testCompressFunction · 0.36
BenchmarkCompressFunction · 0.36
BenchmarkDecompressFunction · 0.36