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

Method Decompress

pkg/util/grpcencoding/snappy/snappy.go:55–59  ·  view source on GitHub ↗
(r io.Reader)

Source from the content-addressed store, hash-verified

53}
54
55func (c *compressor) Decompress(r io.Reader) (io.Reader, error) {
56 dr := c.readersPool.Get().(*snappy.Reader)
57 dr.Reset(r)
58 return reader{dr, &c.readersPool}, nil
59}
60
61type writeCloser struct {
62 writer *snappy.Writer

Callers

nothing calls this directly

Calls 2

GetMethod · 0.65
ResetMethod · 0.45

Tested by

no test coverage detected