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

Function newFolderReadCloser

struct.go:163–172  ·  view source on GitHub ↗
(rc io.ReadCloser, size int64, hasEncryption bool)

Source from the content-addressed store, hash-verified

161}
162
163func newFolderReadCloser(rc io.ReadCloser, size int64, hasEncryption bool) *folderReadCloser {
164 nrc := new(folderReadCloser)
165 nrc.h = crc32.NewIEEE()
166 nrc.wc = new(plumbing.WriteCounter)
167 nrc.ReadCloser = plumbing.TeeReadCloser(rc, io.MultiWriter(nrc.h, nrc.wc))
168 nrc.size = size
169 nrc.hasEncryption = hasEncryption
170
171 return nrc
172}
173
174func (f *folder) unpackSize() uint64 {
175 if len(f.size) == 0 {

Callers 1

folderReaderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…