MCPcopy
hub / github.com/klauspost/compress / NewReader

Function NewReader

flate/inflate.go:944–946  ·  view source on GitHub ↗

NewReader returns a new ReadCloser that can be used to read the uncompressed version of r. If r does not also implement io.ByteReader, the decompressor may read more data than necessary from r. It is the caller's responsibility to call Close on the ReadCloser when finished reading. The ReadCloser r

(r io.Reader)

Source from the content-addressed store, hash-verified

942//
943// The ReadCloser returned by NewReader also implements Resetter.
944func NewReader(r io.Reader) io.ReadCloser {
945 return NewReaderOpts(r)
946}
947
948// NewReaderDict is like NewReader but initializes the reader
949// with a preset dictionary. The returned Reader behaves as if

Callers 15

Example_resetFunction · 0.92
Example_synchronizationFunction · 0.92
newFlateReaderFunction · 0.92
readHeaderMethod · 0.92
ResetMethod · 0.92
TestNlitOutOfRangeFunction · 0.70
benchmarkDecodeFunction · 0.70
FuzzEncodingFunction · 0.70
TestRegressionsFunction · 0.70
TestStreamsFunction · 0.70
TestResetFunction · 0.70
TestReaderTruncatedFunction · 0.70

Calls 1

NewReaderOptsFunction · 0.85

Tested by 15

Example_resetFunction · 0.74
Example_synchronizationFunction · 0.74
TestNlitOutOfRangeFunction · 0.56
benchmarkDecodeFunction · 0.56
FuzzEncodingFunction · 0.56
TestRegressionsFunction · 0.56
TestStreamsFunction · 0.56
TestResetFunction · 0.56
TestReaderTruncatedFunction · 0.56
TestResetDictFunction · 0.56
TestInflateFunction · 0.56
TestWriteToFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…