MCPcopy Create free account
hub / github.com/imroc/req / NewDeflateReader

Function NewDeflateReader

internal/compress/deflate_reader.go:14–16  ·  view source on GitHub ↗
(body io.ReadCloser)

Source from the content-addressed store, hash-verified

12}
13
14func NewDeflateReader(body io.ReadCloser) *DeflateReader {
15 return &DeflateReader{Body: body}
16}
17
18func (df *DeflateReader) Read(p []byte) (n int, err error) {
19 if df.derr != nil {

Callers 2

TestDeflateReaderFunction · 0.85
NewCompressReaderFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestDeflateReaderFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…