NewReader returns a new Reader reading from r.

Calling NewReader causes it to immediately read in header data from r containing size and type information. Any errors encountered in that process will be returned in err.

The returned Reader implements io.ReadCloser. Close should be called when finished with the Reader. Close will not close the underlying io.Reader.

NewReader is referenced in 1 repository