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

Function OpenReader

reader.go:284–286  ·  view source on GitHub ↗

OpenReader will open the 7-zip file specified by name and return a [*ReadCloser]. If name has a ".001" suffix it is assumed there are multiple volumes and each sequential volume will be opened.

(name string)

Source from the content-addressed store, hash-verified

282// [*ReadCloser]. If name has a ".001" suffix it is assumed there are multiple
283// volumes and each sequential volume will be opened.
284func OpenReader(name string) (*ReadCloser, error) {
285 return OpenReaderWithPassword(name, "")
286}
287
288// NewReaderWithPassword returns a new [*Reader] reading from r using password
289// as the basis of the decryption key, which is assumed to have the given size

Callers 6

TestOpenReaderFunction · 0.92
TestFSFunction · 0.92
ExampleOpenReaderFunction · 0.92
benchmarkArchiveParallelFunction · 0.92
TestFileReadCloser_SeekFunction · 0.85

Calls 1

OpenReaderWithPasswordFunction · 0.85

Tested by 6

TestOpenReaderFunction · 0.74
TestFSFunction · 0.74
ExampleOpenReaderFunction · 0.74
benchmarkArchiveParallelFunction · 0.74
TestFileReadCloser_SeekFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…