Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/cortexproject/cortex
/ Write
Method
Write
pkg/util/grpcencoding/zstd/zstd.go:60–62 ·
view source on GitHub ↗
(p []byte)
Source
from the content-addressed store, hash-verified
58
}
59
60
func
(z *zstdWriteCloser) Write(p []byte) (int, error) {
61
return
z.buf.Write(p)
62
}
63
64
func
(z *zstdWriteCloser) Close() error {
65
compressed := z.enc.EncodeAll(z.buf.Bytes(), nil)
Callers
4
testCompress
Function · 0.45
BenchmarkCompress
Function · 0.45
BenchmarkDecompress
Function · 0.45
computeStreamHMAC
Function · 0.45
Calls
no outgoing calls
Tested by
3
testCompress
Function · 0.36
BenchmarkCompress
Function · 0.36
BenchmarkDecompress
Function · 0.36