MCPcopy 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
60func (z *zstdWriteCloser) Write(p []byte) (int, error) {
61 return z.buf.Write(p)
62}
63
64func (z *zstdWriteCloser) Close() error {
65 compressed := z.enc.EncodeAll(z.buf.Bytes(), nil)

Callers 4

testCompressFunction · 0.45
BenchmarkCompressFunction · 0.45
BenchmarkDecompressFunction · 0.45
computeStreamHMACFunction · 0.45

Calls

no outgoing calls

Tested by 3

testCompressFunction · 0.36
BenchmarkCompressFunction · 0.36
BenchmarkDecompressFunction · 0.36