Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
47
func
(c *compressor) Compress(w io.Writer) (io.WriteCloser, error) {
48
return
&zstdWriteCloser{
49
enc: c.encoder,
50
writer: w,
51
}, nil
52
}
53
54
type
zstdWriteCloser
struct
{
55
enc *zstd.Encoder
Callers
3
testCompress
Function · 0.45
BenchmarkCompress
Function · 0.45
BenchmarkDecompress
Function · 0.45
Calls
no outgoing calls
Tested by
3
testCompress
Function · 0.36
BenchmarkCompress
Function · 0.36
BenchmarkDecompress
Function · 0.36