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

Method unpackSize

struct.go:174–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

172}
173
174func (f *folder) unpackSize() uint64 {
175 if len(f.size) == 0 {
176 return 0
177 }
178
179 for i := len(f.size) - 1; i >= 0; i-- {
180 if f.findOutBindPair(uint64(i)) == nil {
181 return f.size[i]
182 }
183 }
184
185 return f.size[len(f.size)-1]
186}
187
188type unpackInfo struct {
189 folder []*folder

Callers 2

readSubStreamsInfoFunction · 0.80
folderReaderMethod · 0.80

Calls 1

findOutBindPairMethod · 0.95

Tested by

no test coverage detected