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

Method Read

pkg/util/grpcencoding/snappy/snappy.go:87–94  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

85}
86
87func (r reader) Read(p []byte) (n int, err error) {
88 n, err = r.reader.Read(p)
89 if err == io.EOF {
90 r.reader.Reset(nil)
91 r.pool.Put(r.reader)
92 }
93 return n, err
94}

Callers 8

generateRandomSuffixFunction · 0.45
Benchmark_CompressionFunction · 0.45
newHeapScannerFunction · 0.45
scanMethod · 0.45
logUnfinishedRequestsFunction · 0.45

Calls 2

PutMethod · 0.65
ResetMethod · 0.45