MCPcopy Create free account
hub / github.com/bodgit/sevenzip / NewReader

Function NewReader

reader.go:308–310  ·  view source on GitHub ↗

NewReader returns a new [*Reader] reading from r, which is assumed to have the given size in bytes.

(r io.ReaderAt, size int64)

Source from the content-addressed store, hash-verified

306// NewReader returns a new [*Reader] reading from r, which is assumed to have
307// the given size in bytes.
308func NewReader(r io.ReaderAt, size int64) (*Reader, error) {
309 return NewReaderWithPassword(r, size, "")
310}
311
312// Open opens the named file in the 7-zip archive, using the semantics of
313// [fs.FS.Open]: paths are always slash separated, with no leading / or ../

Callers 1

TestNewReaderFunction · 0.92

Calls 1

NewReaderWithPasswordFunction · 0.85

Tested by 1

TestNewReaderFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…